Subject: Re: CVS commit: src
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: James Graham - Systems Mangler <greywolf@starwolf.com>
List: tech-userlevel
Date: 01/24/1999 18:00:27
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.)