From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10227 invoked from network); 19 Apr 2001 10:52:37 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Apr 2001 10:52:37 -0000 Received: (qmail 2797 invoked by alias); 19 Apr 2001 10:52:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14027 Received: (qmail 2784 invoked from network); 19 Apr 2001 10:52:29 -0000 From: "Bart Schaefer" Message-Id: <1010419094700.ZM11081@candle.brasslantern.com> Date: Thu, 19 Apr 2001 09:47:00 +0000 In-Reply-To: Comments: In reply to Andrej Borsenkow "Re: PATCH: Assorted parameter stuff" (Apr 19, 1:20pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Subject: Re: PATCH: Assorted parameter stuff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 19, 1:20pm, Andrej Borsenkow wrote: } Subject: Re: PATCH: Assorted parameter stuff } } There seems to be a problem quoting open bracket: Yes, I found that while writing the test script, too. I've fixed it; a fragment of D06subscript.ztst: o='[' c=']' A[\]]=cbrack A[\[]=obrack A[\\\[]=backobrack A[\\\]]=backcbrack print -R $A[$o] $A[$c] $A[\[] $A[\]] $A[\\\[] $A[\\\]] print -R $A[(i)\[] $A[(i)\]] $A[(i)\\\\\[] $A[(i)\\\\\]] 0:Associative array keys with open and close brackets >obrack cbrack obrack cbrack backobrack backcbrack >[ ] \[ \] This passes with the code I have now, and hope to commit tomorrow night. } 4.0.1-pre-1 is even more funnier ... } so I ask myself if it ever worked No, it never worked before, and quoting of `*' and probably also of `@' still won't work even after I get done. assoc[\*]=foo assigns to the key `\*', not to the key `*', and assoc[*]=bar fails silently (I'm not sure why it's silent). -- 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