Subject: Re: CVS commit: src/usr.bin/printf
To: None <dsl@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: tech-userlevel
Date: 06/25/2003 11:18:30
In article <20030625095416.D4EE2B004@cvs.netbsd.org> you write:
>
>Module Name:	src
>Committed By:	dsl
>Date:		Wed Jun 25 09:54:16 UTC 2003
>
>Modified Files:
>	src/usr.bin/printf: printf.c
>
>Log Message:
>Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conform
>to the "Utility Syntax Guidlines".

While true, this isn't relevant.  IEEE Std 1003.1-2001 specifies that the
options for printf are 'None' (XCU p 783 ll 28579-28580)[1].  "None" is
defined as meaning that the implementation 'shall recognize "--" as a first
argument to be discarded' (XCU p 21 ll 834-837)[2].

[1] <http://www.opengroup.org/onlinepubs/007904975/utilities/printf.html>
[2] <http://www.opengroup.org/onlinepubs/007904975/utilities/
     xcu_chap01.html#tag_01_11>

>Fixes PR 21970.

See my comments appended to that PR on Monday.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>