From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19040 invoked from network); 18 Apr 2001 08:11:00 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Apr 2001 08:11:00 -0000 Received: (qmail 14976 invoked by alias); 18 Apr 2001 08:10:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14006 Received: (qmail 14955 invoked from network); 18 Apr 2001 08:10:38 -0000 From: "Bart Schaefer" Message-Id: <1010418081010.ZM29170@candle.brasslantern.com> Date: Wed, 18 Apr 2001 08:10:10 +0000 In-Reply-To: <1010418073853.ZM28977@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: Patterns quoting in subscript (was: Re: PATCH: Assorted parameter stuff)" (Apr 18, 7:38am) References: <1010418073853.ZM28977@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Andrej Borsenkow , Subject: Re: Patterns quoting in subscript (was: Re: PATCH: Assorted parameter stuff) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I wrote: } } Not true. Without the patch you can't explain the rationale for quoting, } but with the patch it's predictable. Similarly, without the patch this } fails utterly: } } schaefer[508] x='\?' } schaefer[509] print -r $foo[(r)${(q)x}] } \? I'm sorry, I got my examples confused. The pattern that fails without my patch is any one with a close-bracket; with my patch, it works just like the one with '\?', i.e. five backslashes: schaefer[514] foo=(a '?' '\?' '\]') schaefer[515] print -r $foo[(r)\\\\\]] \] Sorry about the confusion. -- 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