[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: "Todd C. Miller" <millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Sun, 8 Dec 2002 09:50:07 -0700 (MST)
CVSROOT: /cvs
Module name: src
Changes by: millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2002/12/08 09:50:07
Modified files:
sbin/shutdown : shutdown.c
usr.bin/calendar: calendar.c
usr.bin/env : env.c
usr.bin/man : man.c
usr.bin/split : split.c
usr.bin/strings: strings.c
usr.bin/su : su.c
usr.bin/xstr : xstr.c
usr.sbin/lpr/lprm: lprm.c
usr.sbin/eeprom: main.c
Log message:
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.
Visit your host, monkey.org