Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typo in example getopt(1) script: $i vs $1 [1] | uqs | 2011-01-26 | 1 | -17/+17 |
| | | | | | | | | While here apply style hammer. PR: docs/154289 [1] Submitted by: Jamie Landeg Jones <jamie@bishopston.net> MFC after: 1 week | ||||
* | mdoc: drop redundant .Pp and .LP calls | uqs | 2010-10-08 | 1 | -2/+0 |
| | | | | They have no effect when coming in pairs, or before .Bl/.Bd | ||||
* | Fix an error in the EXAMPLES section of getopt(1), which is based on | bcr | 2010-07-07 | 1 | -3/+3 |
| | | | | | | | | | | | | | | the same fix present in NetBSD. Note: the getopt man page contains more antique information like this. An overhaul of the man page and/or sync with NetBSD would be the right thing to do. But since this is out of the scope of the PR, I'll leave it as it is for now. PR: docs/133118 Submitted by: Oleg A. Mamontov (oleg at mamontov dot net) Discussed with: jilles@ MFC after: 2 weeks | ||||
* | Revert most part of 200420 as requested, as more review and polish is | delphij | 2009-12-13 | 1 | -0/+1 |
| | | | | needed. | ||||
* | Remove unneeded header includes from usr.bin/ except contributed code. | delphij | 2009-12-11 | 1 | -1/+0 |
| | | | | Tested with: make universe | ||||
* | getopt.c is public domain. Add a comment to that effect. | brooks | 2008-05-15 | 2 | -57/+5 |
| | | | | | | | | | Remove confusing README. PR: bin/98911 Submitted by: Jason McIntyre <jmc at kerhand dot co dot uk> Obtained from: OpenBSD MFC after: 3 days | ||||
* | Expand *n't contractions. | ru | 2005-02-13 | 1 | -1/+1 |
| | |||||
* | Sort sections. | ru | 2005-01-18 | 1 | -6/+6 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | Eliminate macro calls inside literal displays. | ru | 2005-01-15 | 1 | -1/+0 |
| | |||||
* | Fixed bad example. | ru | 2004-07-07 | 1 | -1/+2 |
| | | | | Added reference to the getopts(1) shell builtin. | ||||
* | Deal with double whitespace. | ru | 2004-07-03 | 1 | -1/+1 |
| | |||||
* | Mechanically kill hard sentence breaks. | ru | 2004-07-02 | 1 | -2/+4 |
| | |||||
* | english(4) police. | schweikh | 2002-12-27 | 1 | -1/+1 |
| | |||||
* | ANSIify function definitions. | dwmalone | 2002-09-04 | 1 | -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 FBSDID | obrien | 2002-06-30 | 1 | -1/+2 |
| | |||||
* | Minor nit; return(foo) from main rather than exit(foo). | markm | 2002-04-28 | 1 | -1/+1 |
| | |||||
* | Use `The .Nm utility' | charnier | 2002-04-19 | 1 | -6/+9 |
| | |||||
* | Remove leaf node WARNS?=2 (that mainly I added). This should | markm | 2002-02-08 | 1 | -1/+0 |
| | | | | help the GCC3 transition and CURRENT in general. | ||||
* | Warns cleanup (just make main return an int). | dwmalone | 2001-12-03 | 2 | -0/+2 |
| | |||||
* | mdoc(7) police: join split punctuation to macro calls. | ru | 2001-08-10 | 1 | -2/+1 |
| | |||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -3/+3 |
| | |||||
* | Include missing header files which define functions for which gcc has | dd | 2001-06-24 | 1 | -0/+1 |
| | | | | builtins (e.g., exit, strcmp). | ||||
* | MAN[1-9] -> MAN. | ru | 2001-03-27 | 1 | -1/+0 |
| | |||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 1 | -3/+3 |
| | |||||
* | mdoc(7) police: use certified section headers wherever possible. | ru | 2000-11-17 | 1 | -1/+1 |
| | |||||
* | getopt and friends are declared in <unistd.h> | imp | 2000-09-04 | 1 | -2/+3 |
| | | | | getopt returns -1 not EOF. | ||||
* | Remove single-space hard sentence breaks. These degrade the quality | sheldonh | 2000-03-01 | 1 | -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 fixes | phantom | 1999-09-05 | 1 | -1/+3 |
| | | | | | PR: docs/13409 Reviewed by: mpp | ||||
* | Add $FreeBSD$ lines to man pages that are missing them to make it | mpp | 1999-08-28 | 1 | -0/+2 |
| | | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net> | ||||
* | $Header$ -> $FreeBSD$ | peter | 1999-08-28 | 1 | -1/+1 |
| | |||||
* | Further backouts and changes to the example. | cracauer | 1999-04-04 | 1 | -8/+22 |
| | | | | | getopt in bourne shell is in fact hard. Maybe perl isn't *that* bad after all... | ||||
* | Back out part of previous commit. | cracauer | 1999-04-04 | 2 | -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 a | cracauer | 1999-04-03 | 2 | -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 final | imp | 1997-03-29 | 1 | -1/+1 |
| | | | | posix standard on the topic. | ||||
* | Cleanup. Boldfaced dashes didn't print at all, also corrected a few | joerg | 1996-10-22 | 1 | -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. | mpp | 1996-01-30 | 1 | -1/+1 |
| | |||||
* | Added README which explains the copyright status of getopt(1) | nate | 1993-07-27 | 1 | -0/+57 |
| | |||||
* | There was additional cruft at the bottom on the man page. | nate | 1993-07-27 | 1 | -1/+0 |
| | |||||
* | Added getopt(1) from NetBSD | nate | 1993-07-26 | 3 | -0/+141 |