On Sat, Sep 05, 2015 at 02:40:05PM -0700 I heard the voice of
Greg A. Woods, and lo! it spake thus:
> 
> There, I've declared that I'm an anachronism and a curmudgeon.

'round here, we prefer to use the term "ctwm user"  ;p


> My ctwm command line is, in its most common usage, seen in this
> variable setting:
> 
>       WM="ctwm -k -display $DISPLAY -W"
> 
> Now I'll need to parametrise it as I'll never manage to get all
> systems I use upgraded at the same time.  I can do it, but I am
> complaining!

Well, in this case, you shouldn't really have to parameterize, for a
bunch of reasons.

One is that, at least for the next version or two (maybe longer if we
forget to take it out, and history suggests...), I have thunks in so
it'll recognize a few old style -options if they come first, and
-display is one of them, so just making it "-display $DISPLAY -k"
instead of having the -k first would make it work across versions.

A second (and probably better one) is that you could just use the
short -d on both old and new.

A third is that, if $DISPLAY is an env var, the whole arg is
unnecessary anyway, since env[DISPLAY] is used by default anyway.  If
it's not an env var, you could still use env(1) to cheat it in and
avoid the arg too.


> >  But it doesn't do long args,
> 
> And that's a very good thing!  :-)

Hey, you're already using a long arg with -display; getopt(3) would
puke on that too...


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to