svn commit: r210354 - stable/8/usr.bin/getopt

Benedict Reuschling bcr at
Wed Jul 21 17:11:27 UTC 2010

Author: bcr (doc committer)
Date: Wed Jul 21 17:11:26 2010
New Revision: 210354

  MFC r209772:
  Fix an error in the EXAMPLES section of getopt(1), which is based on
  the same fix present in NetBSD.
  Note: the getopt man page contains more antique information like this.
  An overhaul of the man page and/or sync with NetBSD would be the right
  thing to do. But since this is out of the scope of the PR, I'll leave
  it as it is for now.
  PR:             docs/133118
  Submitted by:   Oleg A. Mamontov (oleg at mamontov dot net)
  Discussed with: jilles@

Directory Properties:
  stable/8/usr.bin/getopt/   (props changed)

Modified: stable/8/usr.bin/getopt/getopt.1
--- stable/8/usr.bin/getopt/getopt.1	Wed Jul 21 13:29:00 2010	(r210353)
+++ stable/8/usr.bin/getopt/getopt.1	Wed Jul 21 17:11:26 2010	(r210354)
@@ -1,6 +1,6 @@
 .\" $FreeBSD$
-.Dd April 3, 1999
+.Dd July 7, 2010
@@ -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;
-	case "$i"
+	case "$1"
 			echo flag $i set; sflags="${i#-}$sflags";

More information about the svn-src-stable-8 mailing list