Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

assoc array assignment problem.



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