This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
libc : getopt.h/unistd.h : getopt : bug in optstring?
- From: Thomas Hieck <hkt at gmx dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 28 Jul 2002 19:20:19 +0200
- Subject: libc : getopt.h/unistd.h : getopt : bug in optstring?
- Organization: private
- Reply-to: Thomas Hieck <hkt at gmx dot net>
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 :-/
Best regards,
Thomas Hieck
--
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/