getopt bundling brouhaha
John B. Chambers
jbc at mcc-db.UUCP
Mon Jul 15 09:56:32 AEST 1985
From: John Chambers (guest moderator) <ut-sally!std-unix>
Topic: getopt and command line arguments continued
----------------------------------------------------------------------
Date: Wed, 10 Jul 85 09:53:45 EDT
From: seismo!elsie!ado at ut-sally.ARPA
Subject: getopt bundling brouhaha
Why all this brouhaha over whether or not getopt should allow option arguments
to be bundled with option names? Let each user decide! People who wanted to
bundle could place commands such as
GETOPT=b
export GETOPT
in their login command files; getopt could check the GETOPT environment
variable to see if it contained a 'b' and allow bundling if it did.
This method could be used to give users control over other aspects of
getopt's behavior (whether to be sensitive to the case of option names;
whether to recognize options anywhere on the command line; and so on).
--
UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado at seismo.ARPA
DEC, VAX and Elsie are Digital Equipment and Borden trademarks
----------------------------------------------------------------------
--
John B. Chambers, Microelectronics and Computer Technology Corp., Austin, TX
{ihnp4,seismo,ctvax}!ut-sally!mcc-db!jbc, jbc at ut-sally.ARPA, chambers at mcc.ARPA
More information about the Mod.std.unix
mailing list