Commit Graph

22 Commits

Author SHA1 Message Date
joerg 223f3c1eab Use semantic markup 2009-03-11 13:53:30 +00:00
wiz 504d664ef9 ANSIfy, remove unnecessary errno.h inclusion. 2006-07-09 21:39:48 +00:00
wiz 1f359fc560 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.
2006-07-09 21:38:47 +00:00
jmmv e4fa47aa78 Use `-ne' to compare numbers instead of `!=' in the example. 2003-05-10 17:02:04 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
wiz 2d05348099 Sort sections, use standard headers. 2001-12-01 19:20:32 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
abs dbb36360cf Space after section number in .Xr 2001-07-06 18:13:35 +00:00
wiz f780ab4671 Fix example; problem report and solution by Jim Bernard in PR 10259. 2000-11-08 12:53:14 +00:00
matt fcd0fb118f 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
2000-07-03 02:51:12 +00:00
lukem 0826be2b88 cleanup formatting, improve example 1999-12-01 12:03:16 +00:00
perry 3a2316b4d9 <stdlib.h> -> <unistd.h> to fix compiler warning 1998-02-03 03:44:22 +00:00
lukem 8c012c7268 WARNSify, fix .Nm usage 1997-10-19 02:13:39 +00:00
phil e285bfacc1 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.
1997-07-18 00:18:26 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc 8f2827a1fb update some old-man macros that hadn't been updated; PR #1194 1995-07-07 22:41:30 +00:00
cgd 7bcf9338df specify man pages the new way. 1994-12-22 12:29:38 +00:00
jtc 7e06b2a1e2 Fix spelling errors. 1994-01-11 02:21:43 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
nate 66cb129044 Got rid of cruft at the bottom of the man page 1993-07-27 18:09:27 +00:00
brezak a7ee7f88c1 Add getopt(1) from ref public sources. 1993-06-21 12:43:56 +00:00