From bb71f141bf2884f1edbe1771cd3ca2393f24627e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 10 Oct 1999 14:05:38 +0000 Subject: zsh-workers/8186 --- Doc/Zsh/redirect.yo | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/redirect.yo b/Doc/Zsh/redirect.yo index e8fccb36d..924b8b64b 100644 --- a/Doc/Zsh/redirect.yo +++ b/Doc/Zsh/redirect.yo @@ -92,11 +92,31 @@ The input/output from/to the coprocess is moved to the standard input/output. ) xitem(tt(>&) var(word)) item(tt(&>) var(word))( -Same as `tt(>) var(word) tt(2>&1)'. Note that with tt(&>), var(word) is -never interpreted as a file descriptor, even if it is a number. +(Except where `tt(>&) var(word)' matches one of the above syntaxes; +`tt(&>)' can always be used to avoid this ambiguity.) +Redirects both standard output and standard error (file descriptor 2) +in the manner of `tt(>) var(word)'. +Note that this does em(not) have the same effect as `tt(>) var(word) tt(2>&1)' +in the presence of multios (see the section below). ) -item(tt(>>&) var(word))( -Same as `tt(>>) var(word) tt(2>&1)'. +xitem(tt(>&|) var(word)) +xitem(tt(>&!) var(word)) +xitem(tt(&>|) var(word)) +item(tt(&>!) var(word))( +Redirects both standard output and standard error (file descriptor 2) +in the manner of `tt(>|) var(word)'. +) +xitem(tt(>>&) var(word)) +item(tt(&>>) var(word))( +Redirects both standard output and standard error (file descriptor 2) +in the manner of `tt(>>) var(word)'. +) +xitem(tt(>>&|) var(word)) +xitem(tt(>>&!) var(word)) +xitem(tt(&>>|) var(word)) +item(tt(&>>!) var(word))( +Redirects both standard output and standard error (file descriptor 2) +in the manner of `tt(>>|) var(word)'. ) enditem() -- cgit 1.4.1