=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/getopt/getopt.1,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/getopt/getopt.1 2006/01/14 09:37:24 1.11 +++ src/usr.bin/getopt/getopt.1 2007/01/24 19:11:14 1.12 @@ -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 @@ 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