This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUG: getopt does not permute argv correctly


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]