diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2016-01-03 18:57:10 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2016-01-03 18:57:10 +0000 |
commit | 524f8026106af96809ab70f8b48b0ee3c80a7098 (patch) | |
tree | 1391ee57f41c618dd6434738cc5ba1996db9ec1c /Test | |
parent | 63c6d1746c5bbe67a4f78517b3a0f532d50672f6 (diff) | |
download | zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.gz zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.xz zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.zip |
37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C01arith.ztst | 11 |
1 files changed, 11 insertions, 0 deletions
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 |