From 524f8026106af96809ab70f8b48b0ee3c80a7098 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 3 Jan 2016 18:57:10 +0000 Subject: 37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar --- Test/C01arith.ztst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Test/C01arith.ztst') diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index c7bd81fc3..61da763ac 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -409,3 +409,14 @@ >2 >(eval):6: bad math expression: unexpected ')' >(eval):7: bad math expression: unexpected ')' + + unset number + (( number = 3 )) + print ${(t)number} + unset number + (setopt posix_identifiers + (( number = 3 )) + print ${(t)number}) +0:type of variable when created in arithmetic context +>integer +>scalar -- cgit 1.4.1