about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-04-15 10:20:06 +0100
committerPeter Stephenson <pws@zsh.org>2015-04-15 10:20:06 +0100
commit2ef4b38461dfb554ed2226d9de8958703bc00b98 (patch)
tree0211f4c597eb0d95310b95b57191fc64fca79b4e /Test
parenta2c579050fbf40eb9192f043e901e6b2eff3ab50 (diff)
downloadzsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.gz
zsh-2ef4b38461dfb554ed2226d9de8958703bc00b98.tar.xz
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')
-rw-r--r--Test/C01arith.ztst5
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