- edited description
BSD vs GNU getopt(3) semantics
Issue #118
resolved
see OpenBSD's commit log:
GNU semantics say that if optstring begins with '-' then
each non-option shall be treated as arguments to option '\1'.
BSD getopt match '-' in optstring with a '-' on the command line.
This is used to support deprecated options like "su -" that would
otherwise prevent the use of getopt().
Resolving this simply requires that the leading '-' be moved somewhere
else (I moved it to the end of optstring) since position within
optstring is not meaningful.
Comments (2)
-
reporter -
reporter - changed status to resolved
done, see <<cset:fa86ce2>>.
- Log in to comment