Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Wed, 31 Jul 2002 00:02:19 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: libc : getopt.h/unistd.h : getopt : bug in optstring? Message-ID: <20020731040219.GA24003@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1030538341 DOT 20020728192019 AT gmx DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1030538341.20020728192019@gmx.net> User-Agent: Mutt/1.3.23.1i 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/