OpenBSD CVS

CVS log for src/usr.bin/calendar/calendar.c


[BACK] Up to [local] / src / usr.bin / calendar

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_3_3


Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 8 16:50:07 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.