Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Assorted parameter stuff
- X-seq: zsh-workers 14027
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: Assorted parameter stuff
- Date: Thu, 19 Apr 2001 09:47:00 +0000
- In-reply-to: <Pine.SV4.4.33.0104191317200.9702-100000@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.SV4.4.33.0104191317200.9702-100000@xxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author