Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |