Xref: utzoo comp.lang.c:9544 comp.unix.wizards:7951 Path: utzoo!mnetor!uunet!lll-winken!lll-tis!oodis01!uplherc!sp7040!obie!wsccs!terry From: terry@wsccs.UUCP (Every system needs one) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: command line options Message-ID: <496@wsccs.UUCP> Date: 20 Apr 88 03:26:54 GMT References: <2414@zyx.UUCP> <8039@elsie.UUCP> <7628@brl-smoke.ARPA> <143@gsg.UUCP> <2576@ttrdc.UUCP> Lines: 19 Summary: This getopt() bs is dorky, guys In article <2576@ttrdc.UUCP>, levy@ttrdc.UUCP (Daniel R. Levy) writes: | In article <7663@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: | # In article <2569@ttrdc.UUCP> levy@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@wsccs