X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 14 Sep 2007 09:15:14 +0000 (UTC)
From: Thorsten Glaser <tg@mirbsd.de>
To: Jari Aalto <jari.aalto@cante.net>
cc: Kenneth Stephen <marvin.the.cynical.robot@gmail.com>,
   Igor Pechtchanski <pechtcha@cs.nyu.edu>, cygwin@cygwin.com
Subject: Re: Cygwin-bug#20070914T0555: mksh getop bug
In-Reply-To: <ejh1ss56.fsf@blue.sea.net>
Message-ID: <Pine.BSM.4.64L.0709140913050.28545@odem.66h.42h.de>
References: <ejh1ss56.fsf@blue.sea.net>
X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free.
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=utf-8
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id l8E9L4Js019484

Jari Aalto dixit:

>I've ported mksh to Cygwin and we're considerign including it in the
>distributions.

Thanks, that’s great. Could you let me have a look at that, just out
of interest, as I haven’t really understood the Cygwin packaging
process myself, otherwise I had submitted one earlier.

>The Cygwin users have found following bug in pdkdh's getopt handling,
>which is also present in mksh. Could you take a look:
>
>  http://cygwin.com/ml/cygwin/2005-01/msg00073.html

This is not a bug in the shell, but rather in the script. You must
either use OPTIND=1 together with shift, to reset option processing,
as per the manual page, or just not use shift at all.

bye,
//mirabilos
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.		-- Coywolf Qi Hunt

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


