X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 14 Sep 2007 09:15:14 +0000 (UTC) From: Thorsten Glaser To: Jari Aalto cc: Kenneth Stephen , Igor Pechtchanski , cygwin AT cygwin DOT com Subject: Re: Cygwin-bug#20070914T0555: mksh getop bug In-Reply-To: Message-ID: References: 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/