about summary refs log tree commit diff
path: root/Doc/Zsh/options.yo
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2016-01-03 18:57:10 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2016-01-03 18:57:10 +0000
commit524f8026106af96809ab70f8b48b0ee3c80a7098 (patch)
tree1391ee57f41c618dd6434738cc5ba1996db9ec1c /Doc/Zsh/options.yo
parent63c6d1746c5bbe67a4f78517b3a0f532d50672f6 (diff)
downloadzsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.gz
zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.xz
zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.zip
37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r--Doc/Zsh/options.yo6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index f37753991..2fce10780 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -2098,6 +2098,12 @@ When it is unset, zsh allows expressions of the form tt($#)var(name)
 to refer to the length of tt($)var(name), even for special variables,
 for example in expressions such as tt($#-) and tt($#*).
 
+Another difference is that with the option set assignment to an
+unset variable in arithmetic context causes the variable to be created
+as a scalar rather than a numeric type.  So after `tt(unset t; (( t = 3
+)))'. without tt(POSIX_IDENTIFIERS) set tt(t) has integer type, while with
+it set it has scalar type.
+
 When the option is unset and multibyte character support is enabled (i.e. it
 is compiled in and the option tt(MULTIBYTE) is set), then additionally any
 alphanumeric characters in the local character set may be used in