diff options
author | ru <ru@FreeBSD.org> | 2004-07-07 17:39:16 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-07-07 17:39:16 +0000 |
commit | 2d2e93d885384c000c60e399a24d2e4bb9cae3fa (patch) | |
tree | 5a6979a8c4873515917ca6a3b3b2de8c1129c4fa /usr.bin/getopt | |
parent | 5b527f1c98779c6a08493a8d304376806db75a63 (diff) | |
download | FreeBSD-src-2d2e93d885384c000c60e399a24d2e4bb9cae3fa.zip FreeBSD-src-2d2e93d885384c000c60e399a24d2e4bb9cae3fa.tar.gz |
Fixed bad example.
Added reference to the getopts(1) shell builtin.
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 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 |