mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 17:00:32 +02:00
22686: unset array if assigning numeric parameter
This commit is contained in:
parent
7b927aeac7
commit
b262d310b2
3 changed files with 43 additions and 41 deletions
|
|
@ -97,6 +97,12 @@
|
|||
0:setting array elements in math context
|
||||
>array 1 2
|
||||
|
||||
xarr=()
|
||||
(( xarr = 3 ))
|
||||
print ${(t)xarr} $xarr
|
||||
0:converting type from array
|
||||
>integer 3
|
||||
|
||||
print $(( 13 = 42 ))
|
||||
1:bad lvalue
|
||||
?(eval):1: lvalue required
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue