BUG: getopt does not permute argv correctly

Corinna Vinschen vinschen@redhat.com
Mon Jun 18 16:49:00 GMT 2018


On May 29 14:50, Thomas Kindler wrote:
> Thanks for your quick answer!
> 
> The problem is, that permute_from and num_nonopts is forgotten between
> calls, if there is more than one option flag in an argv entry.
> 
> As a solution, I made those variables global, and added them to
> getopt_data (similar to the existing optwhere).

I'm not opposed to add this patch to newlib, but, did anybody
with a non-Cygwin system test it?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180618/9e378eb3/attachment.sig>


More information about the Newlib mailing list