From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9310 invoked from network); 4 Jul 2003 16:52:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Jul 2003 16:52:59 -0000 Received: (qmail 23046 invoked by alias); 4 Jul 2003 16:52:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18813 Received: (qmail 23039 invoked from network); 4 Jul 2003 16:52:55 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Jul 2003 16:52:55 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Jul 2003 16:52:55 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.cambridgesiliconradio.com (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Thu, 3 Jul 2003 17:52:26 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 4 Jul 2003 17:52:07 +0100 To: zsh-workers@sunsite.dk, 199083-forwarded@bugs.debian.org Subject: Re: zstyle example In-reply-to: "Oliver Kiddle"'s message of "Fri, 04 Jul 2003 18:35:20 +0200." <4759.1057336520@gmcs3.local> Date: Fri, 04 Jul 2003 17:52:52 +0100 Message-ID: <2663.1057337572@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 04 Jul 2003 16:52:07.0666 (UTC) FILETIME=[9AAFB520:01C3424C] Oliver Kiddle wrote: > The problem occurs on line 31 of _files which is: > for i in ${tmp//%p/${${glob:-\*}//:/\\:}}; do > > Changing it to: > for i in ${tmp//\%p/${${glob:-\*}//:/\\:}}; do > > allows it to work again but I can't see any good reason why the `%' > should need to be quoted so I assume that this is a bug introduced with > the recent changes to quoting in these substitutions. Ah, it's because of the fix that //% didn't do the same as what /% did --- they should both treat the % specially as an instruction to anchor the match at the end of the string. Logically, it should also have been quoted, so this fix is correct. (I find it an annoying notation for just this sort of reason; zsh's substitution flags are much neater, but this form is compatible with other shells.) -- 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. **********************************************************************