diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-01-24 19:11:15 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-01-24 19:11:15 +0000 |
commit | 19f2872c956fffbcfbef0dec508647d290fccc15 (patch) | |
tree | ab50ce0b5a02474396d7abad99a6b627a7667de5 /usr.bin | |
parent | 9106ee01297ee6402dfd2a48a662174ba5c624e8 (diff) |
The example is not correct and uses non-idiomatic scripting. So fix it.
ok espie@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/getopt/getopt.1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1 index 1b1ea8c4ea4..bc4cec3c881 100644 --- a/usr.bin/getopt/getopt.1 +++ b/usr.bin/getopt/getopt.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getopt.1,v 1.11 2006/01/14 09:37:24 jmc Exp $ -*- nroff -*- +.\" $OpenBSD: getopt.1,v 1.12 2007/01/24 19:11:14 otto Exp $ -*- nroff -*- .\" .\" This material, written by Henry Spencer, was released by him .\" into the public domain and is thus not subject to any copyright. @@ -62,14 +62,14 @@ then exit 2 fi set -- $args -for i +while [ $# -ge 0 ] do - case "$i" + case "$1" in -a|-b) - flag=$i; shift;; + flag="$1"; shift;; -o) - oarg=$2; shift; shift;; + oarg="$2"; shift; shift;; --) shift; break;; esac |