mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
15291, 15292: fix bug setting scalar in math mode
This commit is contained in:
parent
3dc88e102e
commit
2c75f5b0da
4 changed files with 59 additions and 15 deletions
|
|
@ -88,3 +88,13 @@
|
|||
print ${(t)newarray} ${#newarray} ${newarray[1]}
|
||||
0:setting array elements in math context
|
||||
>array 1 2
|
||||
|
||||
print $(( 13 = 42 ))
|
||||
1:bad lvalue
|
||||
?ZTST_execchunk:2: lvalue required
|
||||
|
||||
x=/bar
|
||||
(( x = 32 ))
|
||||
print $x
|
||||
0:assigning to scalar which contains non-math string
|
||||
>32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue