1
0
Fork 0
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:
Peter Stephenson 2006-09-11 11:09:15 +00:00
parent 7b927aeac7
commit b262d310b2
3 changed files with 43 additions and 41 deletions

View file

@ -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