Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
assoc array assignment problem.
- X-seq: zsh-workers 7969
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: assoc array assignment problem.
- Date: 21 Sep 1999 10:37:33 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Z(2):akr@localhost% Src/zsh -f
localhost% typeset -A arr
localhost% a='$b'
localhost% b='c'
localhost% arr[$a]=d
localhost% print -lr - ${(kv)arr}
c
d
localhost%
Hm. Variable expansion is performed twice.
I think it should be:
localhost% print -lr - ${(kv)arr}
$b
d
localhost%
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author