B"H On 4/5/06, Carl Lowenstein <[EMAIL PROTECTED]> wrote: > > So getopt(3) rationalizes the command line, pulling out the options > first and leaving everything else (e.g. file name) for last. Still > doesn't feel right to fingers that have been typing Unix commands for > much of the last 30 years. And I am sure that the original SysV > getopt did not do this either. >
According to the GNU coding practices (http://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html) It is a GNU extension: -------- It is a good idea to follow the POSIX guidelines for the command-line options of a program. The easiest way to do this is to use getopt to parse them. Note that the GNU version of getopt will normally permit options anywhere among the arguments unless the special argument `--' is used. This is not what POSIX specifies; it is a GNU extension. -------- Menachem > carl -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
