Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



Question:  Does it make more sense to have separate variables for
each command, i.e.:

LS=-la; MKDIR=-p; export LS MKDIR

or to put them into a single var, i.e.:

CMDFLAGS='ls:-la;mkdir:-p;tar:-z'
export CMDFLAGS

This is assuming we want to do this at all.  Me, I don't care -- I'm
used to using flags to the point that I don't even rely on TAPE except
for 'mt' where it's been historically documented...

[Also, note that mkdir is an example.  I doubt I'd always use -p since
it doesn't return an error unless the first absent element in the
path could not be created...]

The parsing code for separate variables is easier to write than
the code to sub-parse a single variable, to be sure, but it also clutters
the environment a bit more, IMO.



                                --*greywolf;
--
Have A Nice Day.  (Offer void where taxed or prohibited.)



Home | Main Index | Thread Index | Old Index