summaryrefslogtreecommitdiffstats
path: root/usr.bin/getopt
Commit message (Collapse)AuthorAgeFilesLines
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-6/+6
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Eliminate macro calls inside literal displays.ru2005-01-151-1/+0
|
* Fixed bad example.ru2004-07-071-1/+2
| | | | Added reference to the getopts(1) shell builtin.
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+4
|
* english(4) police.schweikh2002-12-271-1/+1
|
* ANSIify function definitions.dwmalone2002-09-041-3/+1
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Consistently use FBSDIDobrien2002-06-301-1/+2
|
* Minor nit; return(foo) from main rather than exit(foo).markm2002-04-281-1/+1
|
* Use `The .Nm utility'charnier2002-04-191-6/+9
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Warns cleanup (just make main return an int).dwmalone2001-12-032-0/+2
|
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-2/+1
|
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* MAN[1-9] -> MAN.ru2001-03-271-1/+0
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-1/+1
|
* getopt and friends are declared in <unistd.h>imp2000-09-041-2/+3
| | | | getopt returns -1 not EOF.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* mdoc(7) style fixesphantom1999-09-051-1/+3
| | | | | PR: docs/13409 Reviewed by: mpp
* Add $FreeBSD$ lines to man pages that are missing them to make itmpp1999-08-281-0/+2
| | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* $Header$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Further backouts and changes to the example.cracauer1999-04-041-8/+22
| | | | | getopt in bourne shell is in fact hard. Maybe perl isn't *that* bad after all...
* Back out part of previous commit.cracauer1999-04-042-27/+16
| | | | | | | | | 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".
* 1) Fix the case where a shellscript using getopt is called with acracauer1999-04-032-18/+39
| | | | | | | | | | | | | | | | | | | | | | 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
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Cleanup. Boldfaced dashes didn't print at all, also corrected a fewjoerg1996-10-221-9/+9
| | | | | | other mdoc(5) usage errors. Pointed out by: kuku@physik.rwth-aachen.de (Chris Kukulies)
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-1/+1
|
* Added README which explains the copyright status of getopt(1)nate1993-07-271-0/+57
|
* There was additional cruft at the bottom on the man page.nate1993-07-271-1/+0
|
* Added getopt(1) from NetBSDnate1993-07-263-0/+141
OpenPOWER on IntegriCloud