about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-10 14:05:38 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-10 14:05:38 +0000
commitbb71f141bf2884f1edbe1771cd3ca2393f24627e (patch)
treef8bdb4f002a7739a8de17c9cdbeafc2f44b962c4
parent5f6c22704434f8e98787815764357147b7f87d9f (diff)
downloadzsh-bb71f141bf2884f1edbe1771cd3ca2393f24627e.tar.gz
zsh-bb71f141bf2884f1edbe1771cd3ca2393f24627e.tar.xz
zsh-bb71f141bf2884f1edbe1771cd3ca2393f24627e.zip
zsh-workers/8186
-rw-r--r--Doc/Zsh/redirect.yo28
1 files changed, 24 insertions, 4 deletions
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()