From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10618 invoked from network); 4 Jul 2003 16:41:01 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Jul 2003 16:41:01 -0000 Received: (qmail 18461 invoked by alias); 4 Jul 2003 16:40:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18811 Received: (qmail 18451 invoked from network); 4 Jul 2003 16:40:54 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Jul 2003 16:40:54 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.125.75.4] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Jul 2003 16:40:54 -0000 Received: (qmail 14464 invoked from network); 4 Jul 2003 16:40:36 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-20.tower-1.messagelabs.com with SMTP; 4 Jul 2003 16:40:36 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h64GZcHg005546; Fri, 4 Jul 2003 17:35:38 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h64GZK204761; Fri, 4 Jul 2003 18:36:37 +0200 cc: 199083-forwarded@bugs.debian.org X-VirusChecked: Checked In-reply-to: <20030629154233.GA22955@scru.org> From: Oliver Kiddle References: <20030629154233.GA22955@scru.org> To: zsh-workers@sunsite.dk Subject: Re: zstyle example Date: Fri, 04 Jul 2003 18:35:20 +0200 Message-ID: <4759.1057336520@gmcs3.local> On 29 Jun, Clint wrote: > Chip Salzenberg says [ http://bugs.debian.org/199083 ] : > > The zsh man page includes an example of how to control the tab > completion for 'rm': > > zstyle ':completion:*:*:rm:*' file-patterns \ > '*.o:object-files' '%p:all-files' > > This example used to work but recently (I believe in 4.0.7-1) it > broke; it became necessary to replace the %p with *, which seems to > work, but I'm not sure whether the semantics are identical. 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. Oliver