summaryrefslogtreecommitdiff
path: root/usr.bin/getopt
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-07 17:39:16 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-07 17:39:16 +0000
commitb2a75fdfdffaa7505220f908f299202922d4d687 (patch)
tree5a6979a8c4873515917ca6a3b3b2de8c1129c4fa /usr.bin/getopt
parente825f57623e18467cf52ac2c317f9d209d2e9b5c (diff)
downloadsrc-test2-b2a75fdfdffaa7505220f908f299202922d4d687.tar.gz
src-test2-b2a75fdfdffaa7505220f908f299202922d4d687.zip
Notes
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r--usr.bin/getopt/getopt.13
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