zsh-workers
 help / color / mirror / code / Atom feed
* assoc array assignment problem.
@ 1999-09-21  1:37 Tanaka Akira
  1999-09-21  4:59 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Tanaka Akira @ 1999-09-21  1:37 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-09-30 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-21  1:37 assoc array assignment problem Tanaka Akira
1999-09-21  4:59 ` Bart Schaefer
1999-09-28 12:15   ` Peter Stephenson
1999-09-28 13:04     ` Peter Stephenson
1999-09-30 16:58       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).