mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
23696: x=x; x[-10]=y did bad things
This commit is contained in:
parent
9084df4dc3
commit
4fab17e62a
3 changed files with 27 additions and 1 deletions
|
@ -920,3 +920,20 @@
|
|||
0:Numeric sorting
|
||||
>a6 a17 a117 b6 b17 b117
|
||||
>b117 b17 b6 a117 a17 a6
|
||||
|
||||
x=sprodj
|
||||
x[-10]=scrumf
|
||||
print $x
|
||||
0:Out of range negative scalar subscripts
|
||||
>scrumfsprodj
|
||||
|
||||
a=(some sunny day)
|
||||
a[-10]=(we\'ll meet again)
|
||||
print -l $a
|
||||
0:Out of range negative array subscripts
|
||||
>we'll
|
||||
>meet
|
||||
>again
|
||||
>some
|
||||
>sunny
|
||||
>day
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue