diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-05-31 16:39:22 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-05-31 16:40:14 +0100 |
commit | 75cafccc0a11493ce669a6372d57ef89a801b189 (patch) | |
tree | 77e67b3a4615a1be3b465a1900bd56aa6c133fb0 /Doc/Zsh/expn.yo | |
parent | 911edc5ea475bdf679feee7c800369d8285c263d (diff) | |
download | zsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.gz zsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.xz zsh-75cafccc0a11493ce669a6372d57ef89a801b189.zip |
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r-- | Doc/Zsh/expn.yo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index afd6b1ff9..7d4e6fccb 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -777,6 +777,13 @@ This has the side-effect that joining is skipped even in quoted forms, which may affect other sub-expressions in var(spec). Note that `tt(^)', `tt(=)', and `tt(~)', below, must appear to the left of `tt(#)' when these forms are combined. + +If the option tt(POSIX_IDENTIFIERS) is not set, and var(spec) is a +simple name, then the braces are optional; this is true even +for special parameters so e.g. tt($#-) and tt($#*) take the length +of the string tt($-) and the array tt($*) respectively. If +tt(POSIX_IDENTIFIERS) is set, then braces are required for +the tt(#) to be treated in this fashion. ) item(tt(${^)var(spec)tt(}))( pindex(RC_EXPAND_PARAM, toggle) |