summaryrefslogtreecommitdiffstats
path: root/Test/C01arith.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-05-15 10:19:53 +0100
committerPeter Stephenson <pws@zsh.org>2015-05-15 10:19:53 +0100
commit0da0a0b9c735c5bf0702a0f034976c01ae50fa66 (patch)
treec1e88de241382f2c7010b43fbf15e1fdf3948ae4 /Test/C01arith.ztst
parent35151: improved check for parameter q and b flags (diff)
downloadzsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar.gz
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar.bz2
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar.lz
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar.xz
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.tar.zst
zsh-0da0a0b9c735c5bf0702a0f034976c01ae50fa66.zip
35153: nested math substitution
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r--Test/C01arith.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index e2dfe56fc..d284e0869 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -387,3 +387,11 @@
print $((`:`))
0:Null string in arithmetic evaluation after command substitution
>0
+
+ print $(( 1 + $(( 2 + 3 )) ))
+ print $(($((3+4))))
+ print $((1*$((2*$((3))*4))*5))
+0:Nested math substitutions. Yes, I know, very useful.
+>6
+>7
+>120