From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4436 invoked from network); 12 May 2003 10:17:49 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 May 2003 10:17:49 -0000 Received: (qmail 11259 invoked by alias); 12 May 2003 10:17:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18522 Received: (qmail 11251 invoked from network); 12 May 2003 10:17:41 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 May 2003 10:17:41 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 May 2003 10:17:41 -0000 Received: from exchange01.csr.com (unverified) by (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Mon, 12 May 2003 11:27:27 +0100 Received: from csr.com (tinky-winky.csr.com [192.168.144.127]) by exchange01.csr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id JWCPZ1HW; Mon, 12 May 2003 11:15:34 +0100 To: Zsh workers Subject: Re: PATCH: _init_d problem with read options In-reply-to: "Oliver Kiddle"'s message of "Mon, 12 May 2003 11:55:38 +0200." <2219.1052733338@gmcs3.local> Date: Mon, 12 May 2003 11:17:38 +0100 Message-ID: <5150.1052734658@csr.com> From: Peter Stephenson Oliver Kiddle wrote: > _init_d was broken due to `read -u0k 2' not working after the option > parsing changes. This could probably be fixed up. We have special handling for optional numeric arguments to options, but not for mandatory because it didn't seem necessary. Adding that and making both look for the end of the number would restore compatilibity. However, I'm not completely sure that's the right way to go, since the usual convention is that the argument extends to the end of the word; with the change, we lose sanity checking (although we can still check there is at least one digit present). -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************