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