Home | History | Annotate | only in /src/usr.bin/getopt
History log of /src/usr.bin/getopt
RevisionDateAuthorComments
 1.4 09-Jan-1997  tls RCS ID police
 1.3 22-Dec-1994  cgd specify man pages the new way.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Jun-1993  brezak Add getopt(1) from ref public sources.
 1.19 24-Jan-2010  dholland punctuation
 1.18 28-Nov-2009  dsl Add a note telling people to use the shell getopts builtin.
 1.17 11-Mar-2009  joerg Use semantic markup
 1.16 10-May-2003  jmmv branches: 1.16.42;
Use `-ne' to compare numbers instead of `!=' in the example.
 1.15 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.14 30-Sep-2002  grant New sentence, new line.
 1.13 01-Dec-2001  wiz Sort sections, use standard headers.
 1.12 01-Dec-2001  wiz Whitespace cleanup.
 1.11 06-Jul-2001  abs Space after section number in .Xr
 1.10 08-Nov-2000  wiz Fix example; problem report and solution by Jim Bernard in PR 10259.
 1.9 01-Dec-1999  lukem branches: 1.9.4;
cleanup formatting, improve example
 1.8 19-Oct-1997  lukem branches: 1.8.8;
WARNSify, fix .Nm usage
 1.7 18-Jul-1997  phil Add a new example to SYNOPSIS, change the example. This is in response
to the fact that the /bin/sh set command always sets the exit status to
0, so testing $? will not help discover if getopt found an error if
getopt is used via "set -- `getopt ....`". (POSIX 1003.2 D11 draft says
that the sh set command must return 0 as the exit status.)

I think that POSIX is wrong or that is is not well enough specified to
allow the result of the set to be the exit status of the getopt. But
considering the sequential nature of execution, the set is done last
and is the "last command" and therefore must be the one to set the exit
status. At least there is a work-around for shell scripts.
 1.6 09-Jan-1997  tls RCS ID police
 1.5 07-Jul-1995  jtc update some old-man macros that hadn't been updated; PR #1194
 1.4 11-Jan-1994  jtc Fix spelling errors.
 1.3 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.2 27-Jul-1993  nate Got rid of cruft at the bottom of the man page
 1.1 21-Jun-1993  brezak Add getopt(1) from ref public sources.
 1.8.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.4.1 09-Dec-2001  he Pull up revision 1.10 (requested by he):
Fix syntax error in example. Fixes PR#10259.
 1.16.42.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.8 09-Jul-2006  wiz ANSIfy, remove unnecessary errno.h inclusion.
 1.7 09-Jul-2006  wiz OpenBSD v1.7, jmc@openbsd:
this file is public domain;

problem reported by will h. backman;
sorted with the author's permission - thanks henry spencer.
 1.6 03-Jul-2000  matt Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
 1.5 03-Feb-1998  perry <stdlib.h> -> <unistd.h> to fix compiler warning
 1.4 19-Oct-1997  lukem WARNSify, fix .Nm usage
 1.3 09-Jan-1997  tls RCS ID police
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Jun-1993  brezak Add getopt(1) from ref public sources.

RSS XML Feed