zsh-workers
 help / color / mirror / code / Atom feed
* Bug with associative arrays(?)
@ 1999-02-02  8:04 Sven Wischnowsky
  1999-02-02  8:36 ` Peter Stephenson
  1999-02-02  9:30 ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Wischnowsky @ 1999-02-02  8:04 UTC (permalink / raw)
  To: zsh-workers


Try this:

  % foo=(a b)
  % echo $foo
  a b
  % foo=bar
  % echo $foo
  bar
  % typeset -A foo
  % foo[a]=1
  % foo[b]=2
  % echo $foo
  1 2
  % foo=bar
  % echo $foo
  1 2                   # Oops?
  % echo ${(kv)foo}
  a 1 b 2               # Yes, really.

...or is this the intended behavior? If so, why?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~1999-02-02  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-02  8:04 Bug with associative arrays(?) Sven Wischnowsky
1999-02-02  8:36 ` Peter Stephenson
1999-02-02  9:30 ` 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).