command line options
Every system needs one
terry at wsccs.UUCP
Wed Apr 20 13:26:54 AEST 1988
In article <2576 at ttrdc.UUCP>, levy at ttrdc.UUCP (Daniel R. Levy) writes:
| In article <7663 at brl-smoke.ARPA>, gwyn at brl-smoke.ARPA (Doug Gwyn ) writes:
| # In article <2569 at ttrdc.UUCP> levy at ttrdc.UUCP (Daniel R. Levy) writes:
| # >All youse guys are missing the REALLY illegal, non-wildcard getopt option.
| # >It is ":".
| #
| # Actually I didn't miss it. The same yoyo implementor who is likely to make
| # = a valid option is also likely to pass getopts a list like ":abc:d:ef".
|
| $ getopt :abc:d:ef -: foo
| getopt: illegal option -- :
|
| ':' is special-cased in getopt.c. Look at the code.
Why not make a shell built-in "help" which passes a flag to the program that
you can't get elsewhere without beating it over the head with a noodle? Say
\377?
terry at wsccs
More information about the Comp.lang.c
mailing list