diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2024-03-17 14:28:28 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2024-03-17 14:28:28 -0700 |
| commit | 25182cc2e69ab1cfeeb3f0faa1d28d774393043b (patch) | |
| tree | aef59e3f6da6763142c40cc6139c9b1edac21175 /Doc | |
| parent | unposted: Note bug that HIST_IGNORE_DUPS mishandles quoted whitespace. (diff) | |
| download | zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar.gz zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar.bz2 zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar.lz zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar.xz zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.tar.zst zsh-25182cc2e69ab1cfeeb3f0faa1d28d774393043b.zip | |
52759: ${ ... } trims one trailing newline; "${ ... }" preserves that newline.
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/Zsh/expn.yo | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 183ca6e03..0e121e784 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1950,6 +1950,9 @@ the braces by whitespace, like `tt(${ )...tt( })', is replaced by its standard output. Like `tt(${|)...tt(})' and unlike `tt($LPAR())...tt(RPAR())', the command executes in the current shell context with function local behaviors and does not create a subshell. +Word splitting does not apply unless tt(SH_WORD_SPLIT) is set, but a +single trailing newline is stripped unless the substitution is enclosed +in double quotes. Note that because the `tt(${|)...tt(})' and `tt(${ )...tt( })' forms must be parsed at once as both string tokens and commands, all other |
