diff options
Diffstat (limited to 'usr.bin/getopt/getopt.1')
-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 b57cc29..1deb0b4 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 |