From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21117 invoked from network); 21 May 2007 09:49:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 May 2007 09:49:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 77136 invoked from network); 21 May 2007 09:49:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 May 2007 09:49:28 -0000 Received: (qmail 3867 invoked by alias); 21 May 2007 09:49:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23445 Received: (qmail 3858 invoked from network); 21 May 2007 09:49:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 May 2007 09:49:25 -0000 Received: (qmail 76842 invoked from network); 21 May 2007 09:49:25 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 21 May 2007 09:49:22 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly39d.srv.mailcontrol.com (MailControl) with ESMTP id l4L9mssc029216 for ; Mon, 21 May 2007 10:49:19 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 21 May 2007 10:49:13 +0100 Date: Mon, 21 May 2007 10:49:13 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: PATCH: reverse matching (tentative) Message-ID: <20070521104913.7b984b1a@news01.csr.com> In-Reply-To: <17393e3e0705151406w2c58798fncfe4060f2f6e0d86@mail.gmail.com> References: <200705150959.l4F9xqv9010438@news01.csr.com> <17393e3e0705151406w2c58798fncfe4060f2f6e0d86@mail.gmail.com> Organization: CSR X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 May 2007 09:49:13.0540 (UTC) FILETIME=[49DF1840:01C79B8D] X-Scanned-By: MailControl A-06-00-00 (www.mailcontrol.com) on 10.68.0.149 On Tue, 15 May 2007 17:06:37 -0400 "Matt Wozniski" wrote: > On 5/15/07, Peter Stephenson wrote: > > match. If the option KSH_ARRAYS is in effect, the subscript is > > still 0 for a failed match; this cannot be distinguished from a > > successful match without testing ${array[0]} against the pat- > > tern. > > I have a function in my .zshrc that has to work around exactly that > 'feature' - I'd be all for just removing that and having it return a > blank string. I've committed this. Only (R) has changed. Indices returned from subscript searches should be as before. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview