From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6629 invoked from network); 1 Nov 2006 12:24:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Nov 2006 12:24:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 64475 invoked from network); 1 Nov 2006 12:24:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Nov 2006 12:24:14 -0000 Received: (qmail 4447 invoked by alias); 1 Nov 2006 12:24:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22941 Received: (qmail 4437 invoked from network); 1 Nov 2006 12:24:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Nov 2006 12:24:11 -0000 Received: (qmail 64215 invoked from network); 1 Nov 2006 12:24:11 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 1 Nov 2006 12:24:08 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly30d.srv.mailcontrol.com (MailControl) with ESMTP id kA1CO6PO028064 for ; Wed, 1 Nov 2006 12:24:06 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Nov 2006 12:24:06 +0000 Date: Wed, 1 Nov 2006 12:24:05 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Prepend/append to the members of a list Message-Id: <20061101122405.1c6bbfb2.pws@csr.com> In-Reply-To: <200610311708.k9VH8UX8025695@news01.csr.com> References: <20061030170919.GA9507@alea.gnuu.de> <200610311452.k9VEqKNI013158@news01.csr.com> <061031083123.ZM10976@torch.brasslantern.com> <200610311708.k9VH8UX8025695@news01.csr.com> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.8.20; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Nov 2006 12:24:06.0028 (UTC) FILETIME=[9F987CC0:01C6FDB0] X-Scanned-By: MailControl A-07-06-70 (www.mailcontrol.com) on 10.68.0.140 Peter Stephenson wrote: > > The PATTERN may begin with a `#', in which case the PATTERN must > > match at the start of the string, or `%', in which case it must > > match at the end of the string. > > > > Should that doc also say that #% is a legal pattern meaning "anchor > > the match at both ends of the string"? > > With the current code, no, because that's not supported. I > suppose it would be sensible to add that for compatibility---although > it does change the syntax in the not particularly likely but by no means > impossible case that you're substituting a % at the head of a string, > so I'm not so sure. I've committed the patch with this change, so ${param/#%foo/bar} does mean "foo must match the whole element". There's a note in README about the change. -- 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