libc : getopt.h/unistd.h : getopt : bug in optstring?
Christopher Faylor
cgf@redhat.com
Wed Jul 31 02:42:00 GMT 2002
On Sun, Jul 28, 2002 at 07:20:19PM +0200, Thomas Hieck wrote:
>Hello,
>I tried to use '-' as first character in optstring.
>
> while( (option = getopt(argc, argv , "-ov:ht")) != -1)
>
>This should handle the the non-option argv-elements as if it were
>arguments with character code 1.
>It works fine, but not in Cygwin. The Cygwin version of getopt ignores
>this flag :-/
AFAICT, this is a GNU getopt specific feature. Cygwin doesn't use GNU
getopt.
If you want to send a patch to get this working with cygwin, however,
we'll cheerfully accept it.
cgf
--
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/
More information about the Cygwin
mailing list