Re: argp vs ':', '+', and '-' in getopt

2009-12-01 Thread Eric Blake
Sergey Poznyakoff gnu.org.ua> writes: > > Argp doesn't protect the user from picking short options that > > interfere with argp's getopt implementation. > > Thanks for reporting and for the patch. I'll apply it. argp should also protect against ';', since "W;" is special to getopt. -- Eric Bl

Re: argp vs ':', '+', and '-' in getopt

2009-11-06 Thread Paolo Bonzini
On 11/06/2009 10:24 AM, Ben Asselstine wrote: I hope this trivial patch can be applied without the need for copyright assignment. I cannot judge the patch since I'm not familiar with argp, but anyway the answer to this question should be yes. Paolo

argp vs ':', '+', and '-' in getopt

2009-11-06 Thread Ben Asselstine
Hi folks, Argp doesn't protect the user from picking short options that interfere with argp's getopt implementation. I apologize in advance for any line-splitting that gmail does to this message. Consider the options in the following program: $ ./bug1 --help Usage: bug1 [OPTION...] -+, --plu