BUG: getopt does not permute argv correctly

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


On Jun 18 18:48, Corinna Vinschen wrote:
> 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?

From visual inspection the code looks reasonable, btw.


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/1dd86ce0/attachment.sig>


More information about the Newlib mailing list