This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: getopt_long behavior


Christopher Faylor wrote:
> On Thu, Jan 30, 2003 at 01:34:47AM -0000, Max Bowsher wrote:
>> Christopher Faylor wrote:
>>> And for an answer to the riddle of why this won't immediately do
>>> what you want, try this in the winsup/cygwin directory:
>>>
>>>   grep -i getopt cygwin.din
>>>
>>> (Remember not to put the -i at the end!)
>>
>> Ah.  This suggests that the ideal fix would be to have alternate
>> object files for getopt, such that programs which really can't cope
>> with getopt's reordering can surpress it at link time - something
>> along the lines of automode.o, textmode.o, etc.
>
> No, it wouldn't suggest that at all.  Did you try the grep that I
> suggested?

Yes.

>  getopt isn't exported from cygwin1.dll.  It only lives in
> libcygwin.a.

I noticed.

This does not invalidate the proposal "do something at link time to force
POSIXLY_CORRECT if necessary for this app".

> I don't know why the original designers of cygwin decided to do things
> this way but it has been this way forever.

Not necessarily an argument against change ;-)


Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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