Subject: Re: bin/21970 - printf(1) breaks when format begins with "-"
To: None <hubertf@NetBSD.org, gnats-admin@netbsd.org,>
From: Hubert Feyrer <hubert@feyrer.de>
List: netbsd-bugs
Date: 11/27/2006 01:55:02
The following reply was made to PR bin/21970; it has been noted by GNATS.
From: Hubert Feyrer <hubert@feyrer.de>
To: gnats-bugs@NetBSD.org, apb@NetBSD.org, dsl@NetBSD.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: bin/21970 - printf(1) breaks when format begins with "-"
Date: Mon, 27 Nov 2006 01:55:46 +0100 (CET)
FWIW here's a better patch that doesn't use TOG wording:
Index: intro.1
===================================================================
RCS file: /cvsroot/src/share/man/man1/intro.1,v
retrieving revision 1.10
diff -u -r1.10 intro.1
--- intro.1 10 Nov 2004 16:35:57 -0000 1.10
+++ intro.1 27 Nov 2006 00:56:18 -0000
@@ -50,6 +202,16 @@
formatted output tools,
and line printer commands.
.Pp
+Many of the commands use the
+.Xr getopt 3
+function for parsing of command line options.
+For those commands the argument
+.Dq --
+indicates the end of options, and any following arguments
+are assumed to be operands, even if they begin with a
+.Sq -
+character.
+.Pp
All commands set a status value upon exit which may be tested
to see if the command completed normally.
The exit values and their meanings are explained in the individual
- Hubert