Commit Graph

21 Commits

Author SHA1 Message Date
dwmalone
418c24c424 Warns cleanup (just make main return an int). 2001-12-03 20:57:49 +00:00
ru
3b72217422 mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
dd
7d1013753f Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
dd
2b75a1b683 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
ru
8ec47de9c3 MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
ru
0957874304 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
ru
77559ae015 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
imp
bb9a721597 getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
sheldonh
d39e57413d Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
phantom
0e056e6a23 mdoc(7) style fixes
PR:		docs/13409
Reviewed by:	mpp
1999-09-05 05:50:38 +00:00
mpp
1c0a3cee71 Add $FreeBSD$ lines to man pages that are missing them to make it
easier for translation teams.

PR:		docs/13418
Submitted by:	Alexey Zelkin <phantom@cris.net>
1999-08-28 23:23:38 +00:00
peter
51ddb038ec $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
cracauer
22e30fd9eb Further backouts and changes to the example.
getopt in bourne shell is in fact hard. Maybe perl isn't *that* bad
after all...
1999-04-04 13:49:10 +00:00
cracauer
b5cc56859c Back out part of previous commit.
Arguments with whitespaces are easy to fix, but in combination with
shell metachars that should not be evaluated it is very hard, probably
impossible to fix without going to a line-oriented solution.

Next time I will believe Henry Spencer when he says "this looks easy
to fix but isn't".
1999-04-04 00:25:39 +00:00
cracauer
a4f8ac3fd8 1) Fix the case where a shellscript using getopt is called with a
parameter that has space in it, both in getopt.c and in the manpage
   example.

2) Fix the example in the manpage. The set(1) command is required to
   return 0 (POSIX 1003.2, section 3.14.11), so you can't test for
   getopt's exit status like the example did:

  #! /bin/sh
  set -- `getopt abo: $*`
  if test $? != 0  # wrong, tests for set's exit status, which is
                   # always zero, no for getopt(1)'s.

Fixes PR bin/5845, which thought it was getopt's fault, but in fact
the manpage was wrong.

I also updated the example to be more useful and updated the BUGS
section.

PR:		bin/5845
1999-04-03 22:24:36 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
joerg
eeef86078e Cleanup. Boldfaced dashes didn't print at all, also corrected a few
other mdoc(5) usage errors.

Pointed out by:	kuku@physik.rwth-aachen.de (Chris Kukulies)
1996-10-22 21:56:11 +00:00
mpp
029ea9012d Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
nate
7308b9e524 Added README which explains the copyright status of getopt(1) 1993-07-27 17:24:17 +00:00
nate
057f406d02 There was additional cruft at the bottom on the man page. 1993-07-27 17:08:57 +00:00
nate
e06498c301 Added getopt(1) from NetBSD 1993-07-26 22:22:37 +00:00