Up to [local] / src / usr.bin / getopt
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_3_BASE
Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 14 09:55:28 2012 UTC (11 years, 6 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)
fix a bug, hidden by the break statement in the special option case, in the example code. millert@ suggested using -ne instead of -gt since $# can't be negative. ok millert@