diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-02-12 11:57:31 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-02-12 11:57:31 -0800 |
commit | acb15e3cc9af6c5b51e570765e6734e958d32aef (patch) | |
tree | 530ceb89c52f5d1437d76ea1faf305f033a5d259 /Doc/Zsh/expn.yo | |
parent | 3eed6f70cdfea63cfdc380a4df8382fff38af55d (diff) | |
download | zsh-acb15e3cc9af6c5b51e570765e6734e958d32aef.tar.gz zsh-acb15e3cc9af6c5b51e570765e6734e958d32aef.tar.xz zsh-acb15e3cc9af6c5b51e570765e6734e958d32aef.zip |
51403: Tests and documentation for 51402, clean up some other tests.
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r-- | Doc/Zsh/expn.yo | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 8b1c69c55..ef01794e6 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1581,7 +1581,10 @@ is interpreted at the time tt(${)var(pname)tt(}) is expanded. Any form of subscript is allowed, including those that select individual elements, substrings of scalar strings, or multiple elements as with array slices or the `tt((i))', `tt((I))', `tt((r))', `tt((R))' and -`tt((w))' subscript flags. +`tt((w))' subscript flags. However, the subscript is evaluated with +the tt(NO_EXEC) option in effect, so command substitution and other +similar constructs produce no output, although are not syntactically +excluded. When var(rname) is an array (but not an array element or slice), the named reference may also be used in substitutions requiring an |