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 00:50:02
The following reply was made to PR bin/21970; it has been noted by GNATS.

From: Hubert Feyrer <hubert@feyrer.de>
To: apb@NetBSD.org, dsl@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/21970 - printf(1) breaks when format begins with "-"
Date: Mon, 27 Nov 2006 01:36:40 +0100 (CET)

 Hi,
 
 I'm not sure what part exactly you think should be added to intro.1, but 
 below is an educated guess. If I took the wrong one let me know (or do the 
 cut&paste yourself - see also localsrc/legal/TheOpenGroup!).
 
 
   - Hubert
 
 
 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:30:08 -0000
 @@ -29,7 +29,7 @@
   .\"
   .\"     @(#)intro.1	8.2 (Berkeley) 12/30/93
   .\"
 -.Dd April 21, 1998
 +.Dd November 27, 2006
   .Dt INTRO 1
   .Os
   .Sh NAME
 @@ -50,6 +50,18 @@
   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 --
 +is accepted as a delimiter to indicate the end of options.
 +Any following arguments are treated as operands, even if they begin with the
 +.Sq -
 +character. The
 +.Dq --
 +argument are not used as an option or as an operand.
 +.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