Up to [local] / src / usr.bin / split
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_3_3
Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 8 16:50:07 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
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.