mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
34892 (slightly tweaked): math evaluation fix
An empty expression resulting from substitution includes a Nularg, which needs handling the same as an empty string.
This commit is contained in:
parent
a2c579050f
commit
2ef4b38461
3 changed files with 9 additions and 3 deletions
|
@ -383,4 +383,7 @@
|
|||
print ${$(( $1 * 100 ))%%.[0-9]#})
|
||||
0:Arithmetic substitution nested in parameter substitution
|
||||
>3246
|
||||
|
||||
|
||||
print $((`:`))
|
||||
0:Null string in arithmetic evaluation after command substitution
|
||||
>0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue