From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22455 invoked from network); 15 Dec 2003 19:13:22 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Dec 2003 19:13:22 -0000 Received: (qmail 25963 invoked by alias); 15 Dec 2003 19:13:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19290 Received: (qmail 25896 invoked from network); 15 Dec 2003 19:13:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Dec 2003 19:13:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Dec 2003 19:13:15 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBFJDEx13457 for zsh-workers@sunsite.dk; Mon, 15 Dec 2003 11:13:14 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031215191314.ZM13456@candle.brasslantern.com> Date: Mon, 15 Dec 2003 19:13:13 +0000 In-Reply-To: <16058.1071508147@csr.com> Comments: In reply to Peter Stephenson "Re: Completion in pwd before subdirecories" (Dec 15, 5:09pm) References: <16058.1071508147@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Completion in pwd before subdirecories MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 15, 5:09pm, Peter Stephenson wrote: } } Bart Schaefer wrote: } > There's code in _files to attempt to merge together any trailing stuff } > that looks like glob qualifiers, because _files predates the #q flag. } > In fact, I'm suspicious that adding #q might actually break things. } } How? I haven't deciphered in detail the subst-expression that's used to patch this all up, but I'm worried that if you start with e.g. *(r) on the command line, and then the completion function appends e.g. (#q*), and then the file-patterns style is %p(^-/), you end up with something like *(r)(#q*)(^-/) and then the substitution will fail to collapse it all the way down to *(r*^-/) because the #q in the middle won't match the expression in _files.