about summary refs log tree commit diff
path: root/Doc/Zsh/redirect.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-06-28 15:38:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-06-28 15:38:10 +0000
commit7f26993e99cccf2d56958643b8eb369625f04726 (patch)
tree5523268c14d2d86b41b842be5737a167f181f93a /Doc/Zsh/redirect.yo
parent81d27b662a4e65665f8cfb41a629a92181769506 (diff)
downloadzsh-7f26993e99cccf2d56958643b8eb369625f04726.tar.gz
zsh-7f26993e99cccf2d56958643b8eb369625f04726.tar.xz
zsh-7f26993e99cccf2d56958643b8eb369625f04726.zip
20112 changed c.f. 20113:
fix here string and here document expansion and quoting
Diffstat (limited to 'Doc/Zsh/redirect.yo')
-rw-r--r--Doc/Zsh/redirect.yo10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/redirect.yo b/Doc/Zsh/redirect.yo
index 2e48aa7ab..167c3ef21 100644
--- a/Doc/Zsh/redirect.yo
+++ b/Doc/Zsh/redirect.yo
@@ -70,12 +70,22 @@ occurs, `tt(\)' followed by a newline is removed,
 and `tt(\)' must be used to quote the characters
 `tt(\)', `tt($)', `tt(`)' and the first character of var(word).
 
+Note that var(word) itself does not undergo shell expansion.  Backquotes
+in var(word) do not have their usual effect; instead they behave
+similarly to double quotes, except that the backquotes themselves are
+passed through unchanged.  (This information is given for completeness
+and it is not recommended that backquotes be used.)  Quotes in the form
+tt($')var(...)tt(') have their standard effect of expanding backslashed
+references to special characters.
+
 If tt(<<-) is used, then all leading
 tabs are stripped from var(word) and from the document.
 )
 item(tt(<<<) var(word))(
 Perform shell expansion on var(word) and pass the result
 to standard input.  This is known as a em(here-string).
+Compare the use of var(word) in here-documents above, where var(word)
+does not undergo shell expansion.
 )
 xitem(tt(<&) var(number))
 item(tt(>&) var(number))(