From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7737 invoked from network); 9 Dec 2007 01:27:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Dec 2007 01:27:20 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 19510 invoked from network); 9 Dec 2007 01:27:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Dec 2007 01:27:13 -0000 Received: (qmail 8948 invoked by alias); 9 Dec 2007 01:27:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24191 Received: (qmail 8931 invoked from network); 9 Dec 2007 01:27:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Dec 2007 01:27:05 -0000 Received: (qmail 19160 invoked from network); 9 Dec 2007 01:27:05 -0000 Received: from vinc17.pck.nerim.net (HELO prunille.vinc17.org) (213.41.242.187) by a.mx.sunsite.dk with SMTP; 9 Dec 2007 01:26:58 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 2EB8C1C558ED; Sun, 9 Dec 2007 02:26:58 +0100 (CET) Date: Sun, 9 Dec 2007 02:26:58 +0100 From: Vincent Lefevre To: 455070@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#455070: zsh: make completion: please add support for -include Message-ID: <20071209012657.GC132@prunille.vinc17.org> Mail-Followup-To: 455070@bugs.debian.org, zsh-workers@sunsite.dk References: <20071208195817.GA26694@vin.lip.ens-lyon.fr> <20071208210725.GA25946@scowler.net> <20071209011247.GB132@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20071209011247.GB132@prunille.vinc17.org> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.17-vl-r19795 (2007-12-07) On 2007-12-09 02:12:47 +0100, Vincent Lefevre wrote: > On 2007-12-08 16:07:25 -0500, Clint Adams wrote: > > Could you give this completely-untested patch a try? > > It doesn't work. "include" is even no longer matched. If I understand the zshexpn(1) man page[*] correctly (but it is not clear about how the parameter expansion is done in the pattern field), I think this is a bug: prunille:~> incl="(-|)include" prunille:~> echo ${input##(-|)include ##} foo prunille:~> echo ${input##$incl ##} include foo [*] In the expansions discussed below that require a pattern, the form of the pattern is the same as that used for filename generation; see the section `Filename Generation'. Note that these patterns, along with the replacement text of any substitutions, are themselves subject to parameter expansion, command substitution, and arithmetic expansion. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)