From 0da0a0b9c735c5bf0702a0f034976c01ae50fa66 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 15 May 2015 10:19:53 +0100 Subject: 35153: nested math substitution --- Test/C01arith.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1