diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-07-07 17:39:16 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-07-07 17:39:16 +0000 |
commit | b2a75fdfdffaa7505220f908f299202922d4d687 (patch) | |
tree | 5a6979a8c4873515917ca6a3b3b2de8c1129c4fa /usr.bin/getopt | |
parent | e825f57623e18467cf52ac2c317f9d209d2e9b5c (diff) | |
download | src-test2-b2a75fdfdffaa7505220f908f299202922d4d687.tar.gz src-test2-b2a75fdfdffaa7505220f908f299202922d4d687.zip |
Notes
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r-- | usr.bin/getopt/getopt.1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1 index b57cc294c03a..1deb0b45f34e 100644 --- a/usr.bin/getopt/getopt.1 +++ b/usr.bin/getopt/getopt.1 @@ -49,7 +49,7 @@ which requires an argument. args=\`getopt abo: $*\` # you should not use \`getopt abo: "$@"\` since that would parse # the arguments differently from what the set command below does. -if [ $? != 0 ] +if [ $? -ne 0 ] then echo 'Usage: ...' exit 2 @@ -86,6 +86,7 @@ cmd \-a \-oarg \-\- file file .Pp .Ed .Sh SEE ALSO +.Xr getopts 1 , .Xr sh 1 , .Xr getopt 3 .Sh DIAGNOSTICS |