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>2015-05-31 16:39:22 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-05-31 16:40:14 +0100
commit75cafccc0a11493ce669a6372d57ef89a801b189 (patch)
tree77e67b3a4615a1be3b465a1900bd56aa6c133fb0 /Doc/Zsh/options.yo
parent911edc5ea475bdf679feee7c800369d8285c263d (diff)
downloadzsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.gz
zsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.xz
zsh-75cafccc0a11493ce669a6372d57ef89a801b189.zip
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r--Doc/Zsh/options.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 4c0ae122f..4dd68c9cb 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -2054,6 +2054,13 @@ When this option is set, only the ASCII characters tt(a) to tt(z), tt(A) to
 tt(Z), tt(0) to tt(9) and tt(_) may be used in identifiers (names
 of shell parameters and modules).
 
+In addition, setting this option limits the effect of parameter
+substitution with no braces, so that the expression tt($#) is treated as
+the parameter tt($#) even if followed by a valid parameter name.
+When it is unset, zsh allows expresions 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($#*).
+
 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