bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: issue with getopt


From: Eric Blake
Subject: Re: issue with getopt
Date: Sun, 10 Dec 2006 14:27:54 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Lorenzo Bettini on 12/10/2006 10:42 AM:
> Hi
> 
> I've imported getopt from gnulib.
> 
> Now when I run configure && make under linux everything works fine:
> configure detects getopt and does not compile getopt.c and getopt1.c nor
> it includes it in libgnu.a.
> 
> when I run the same under windows using cygwin, configure detects getopt:

The cygwin version of getopt is buggy because it inherited from an older
BSD code base.  It does not handle all getopt constructs in the way that
GNU utilities expect.  For example, when parsing an option that takes an
optional argument, cygwin's getopt fails to set optarg to NULL when the
option appears alone.  Therefore, it must be replaced by a working version
when used by GNU utilities that expect certain behavior.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFfHva84KuGfSFAYARAi3gAKDNC5tNBpFh/cHKpp931bDT1fr5tACfSPAe
P0YWNIvQKyLsLeL8VM0lErI=
=imJw
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]