Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
string[x,y]=foo assignments where y < x
- X-seq: zsh-workers 50651
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: string[x,y]=foo assignments where y < x
- Date: Tue, 20 Sep 2022 13:53:24 +0100
- Archived-at: <https://zsh.org/workers/50651>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
$ 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