summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/getopt/getopt.16
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1
index 771a2e7..eafdce1 100644
--- a/usr.bin/getopt/getopt.1
+++ b/usr.bin/getopt/getopt.1
@@ -1,6 +1,6 @@
.\" $FreeBSD$
.\"
-.Dd April 3, 1999
+.Dd July 7, 2010
.Dt GETOPT 1
.Os
.Sh NAME
@@ -64,9 +64,9 @@ set \-\- $args
# You cannot use the set command with a backquoted getopt directly,
# since the exit code from getopt would be shadowed by those of set,
# which is zero by definition.
-for i
+while true;
do
- case "$i"
+ case "$1"
in
\-a|\-b)
echo flag $i set; sflags="${i#-}$sflags";
OpenPOWER on IntegriCloud