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

string[x,y]=foo assignments where y < x



$ zsh -c 'a=abcde; a[4,0]=XX; echo $ZSH_VERSION $a'
5.9 abcXXabcde

I expected abcXXde like for:

$ zsh -c 'a=(a b c d e); a[4,0]=XX; typeset $a'
a=( a b c XX d e )

Is that expected behaviour?

In any case, I can always do:

a[4,3]=XX

or

a[3]+=XX

to get the behaviour I expect

-- 
Stephane




Messages sorted by: Reverse Date, Date, Thread, Author