bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glibc getopt bugs


From: Eric Blake
Subject: glibc getopt bugs
Date: Tue, 1 Dec 2009 16:59:07 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I just filed a couple of glibc bugs against getopt; depending on the reaction I 
get from the glibc folks, I may need to update gnulib's getopt accordingly.

http://sources.redhat.com/bugzilla/show_bug.cgi?id=11039
http://sources.redhat.com/bugzilla/show_bug.cgi?id=11040

At any rate, our unit tests have no testing of an optstring of "-:..." 
or "+:..." (bug 11039 - glibc doesn't honor the : as a means of silencing 
stderr and returning ':' instead of '?'), nor of the GNU extension of an 
optstring of "W;" (bug 11040 - use of this extension mistakenly allows -; as a 
valid short option).  For that matter, we aren't really testing whether an 
optstring of ":" effectively silences stderr and changes return value, even 
without throwing the GNU extensions of leading '-' or '+' into the mix.

-- 
Eric Blake






reply via email to

[Prev in Thread] Current Thread [Next in Thread]