www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sun, 28 Jul 2002 19:20:19 +0200 |
From: | Thomas Hieck <hkt AT gmx DOT net> |
Reply-To: | Thomas Hieck <hkt AT gmx DOT net> |
Organization: | private |
X-Priority: | 3 (Normal) |
Message-ID: | <1030538341.20020728192019@gmx.net> |
To: | cygwin AT cygwin DOT com |
Subject: | libc : getopt.h/unistd.h : getopt : bug in optstring? |
MIME-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |