command line options

Lloyd Zusman ljz at fxgrp.fx.com
Sun Apr 24 05:21:22 AEST 1988


Why is it that some of you are so fervently defending how '-?' is
currently handled in getopt()?  Are you trying to imply that getopt()
is perfect and nothing better can ever be invented, and that those who
try to suggest that something better might be possible are worthy of
nothing more than derision and scorn?  It sure seems that some of you
feel this way.

What if getopt() were to return '?' as an error UNLESS some global
variable (how 'bout "getoptBADCH"?) is set to some other value?
Then, those of us who believe that getopt() is perfect can continue
to use it as is, and those of us who don't like the '?' behavior
can do something different.

Sheesh!

--
    Lloyd Zusman
    Master Byte Software
    Los Gatos, California		Internet:   ljz at fx.com
    "We take things well in hand."	UUCP:	    ...!ames!fxgrp!ljz



More information about the Comp.unix.wizards mailing list