Tried to make getopt() and friends more sus4-like in error handling

Gregory Pietsch gpietsch@comcast.net
Mon Oct 8 23:05:00 GMT 2012


On 10/4/2012 4:11 AM, Peter Rosin wrote:
> On 2012-08-27 16:33, Eric Blake wrote:
>> '\?' is invalid C code.
> Is it really? It's a preprocessor thing I think. Perhaps not
> very useful if you don't enable trigraphs, but still valid. No?
The 1989 ANSI C Standard, Section 6.1.3.4, and the 1999 ANSI C Standard, 
Section 6.4.4.4, both list \? as a valid escape character. I don't have 
the 2011 ANSI C Standard on hand, but I don't think anything has changed 
with regard to escape sequences.
> But instead of arguing that, why don't you go build a new
> Cygwin bash with --wordexp support instead? You said somewhere
> that you needed an excuse to do that even before the wordexp
> bug report ;-)
>
> Cheers,
> Peter
>



More information about the Newlib mailing list