mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-13 17:31:27 +02:00
37257 (in part): Add array assignment tests.
This commit is contained in:
parent
fd13e8044c
commit
9d2fe86564
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-12-19 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 37257 (in part): Test/A06assign.ztst: Add array assignment tests.
|
||||
|
||||
2015-12-16 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 37411: Test/X03zlebindkey.ztst: more bindkey tests.
|
||||
|
|
|
@ -477,3 +477,15 @@
|
|||
>first second
|
||||
>first
|
||||
>second
|
||||
|
||||
typeset -aU unique_array=(first second)
|
||||
unique_array[1]=second
|
||||
print $unique_array
|
||||
0:assignment to unique array
|
||||
>second
|
||||
|
||||
typeset -a array=(first)
|
||||
array[1,3]=(FIRST)
|
||||
print $array
|
||||
0:slice beyond length of array
|
||||
>FIRST
|
||||
|
|
Loading…
Reference in a new issue