From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24754 invoked from network); 28 Apr 2001 18:18:05 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Apr 2001 18:18:05 -0000 Received: (qmail 15737 invoked by alias); 28 Apr 2001 18:18:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14153 Received: (qmail 15713 invoked from network); 28 Apr 2001 18:17:59 -0000 From: "Bart Schaefer" Message-Id: <1010428181725.ZM31908@candle.brasslantern.com> Date: Sat, 28 Apr 2001 18:17:24 +0000 In-Reply-To: <1010428060505.ZM29936@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: order of processing in brace expansion" (Apr 28, 6:05am) References: <1010428060505.ZM29936@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: order of processing in brace expansion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 28, 6:05am, Bart Schaefer wrote: } Subject: Re: order of processing in brace expansion } } On Apr 27, 7:09pm, Peter Stephenson wrote: } } Subject: Re: order of processing in brace expansion } } } } I would expect what you expect: the expression is interpreted the same as } } a{b,c}d. Unfortunately it isn't. The reason seems to be that the comma } } doesn't get turned back into a token. If we want to fix this, the } } following patch will do it. } } The only issue, I think, is that comma is not a token unless it is inside } braces Perhaps that's not the only issue ... consider: zsh% x='*,v' zsh% echo abc{*,$~x} That is, in all versions of zsh so far, using a parameter expansion is a way to quote commas against brace expansion while still getting filename generation after the expansion. This makes me more reluctant to apply the patch; I just can't decide. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net