zsh-workers
 help / color / mirror / code / Atom feed
* Shell variable tables:setting value for elemet 1 overwrites element 0
@ 2005-05-25 10:55 wojciech.szenajch
  2005-05-25 11:40 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: wojciech.szenajch @ 2005-05-25 10:55 UTC (permalink / raw)
  To: zsh-workers

Hi,

I did the following test for AIX 4.3.3/5.2 ksh, Linux: bash, and pdksh:

$ TB[0]=zero
$ TB[1]=one
$ echo ${TB[0]}
zero
$ echo ${TB[1]}
one


For zsh 4.2.0  (SuSE 9.1, Red Hat ES 4.0)
I did the following:

$ zsh --version
zsh 4.2.0 (i386-suse-linux)    or zsh 4.2.0 (i386-redhat-linux-gnu)
$ zsh
$ TB[0]=zero
$ echo ${TB[0]}
zero     <-------------------------------- correct result
$ TB[1]=one
$ echo ${TB[0]}
one     <-------------------------------- incorrect result
$ echo ${TB[1]}
one


Best Regards
Wojciech Szenajch



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

end of thread, other threads:[~2005-05-27 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <OFB8636392.BEFDACE9-ONC125700C.00408215@bull.com.pl>
2005-05-25 12:05 ` Shell variable tables:setting value for elemet 1 overwrites element 0 Peter Stephenson
2005-05-25 14:48   ` Bart Schaefer
2005-05-27 11:47     ` Peter Stephenson
2005-05-25 10:55 wojciech.szenajch
2005-05-25 11:40 ` Peter Stephenson

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).