diff options
| author | Peter Stephenson <pws@zsh.org> | 2015-04-15 10:20:06 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2015-04-15 10:20:06 +0100 |
| commit | 2ef4b38461dfb554ed2226d9de8958703bc00b98 (patch) | |
| tree | 0211f4c597eb0d95310b95b57191fc64fca79b4e /Test/C01arith.ztst | |
| parent | 34887: Fix POSIX_BUILTINS with assignment. (diff) | |
| download | zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.gz zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.bz2 zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.lz zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.xz zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.zst zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.zip | |
34892 (slightly tweaked): math evaluation fix
An empty expression resulting from substitution includes a
Nularg, which needs handling the same as an empty string.
Diffstat (limited to 'Test/C01arith.ztst')
| -rw-r--r-- | Test/C01arith.ztst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index d3176dd5e..e2dfe56fc 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -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 |
