zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: >& documentation
@ 1999-10-10 14:02 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1999-10-10 14:02 UTC (permalink / raw)
  To: zsh-workers

This patch corrects the documentation of >& to match the actual
behaviour, and adds entries to the documentation for all the related
append/clobber variants.  (Anything matching /(\&\>\>?|\>\>?\&)(\||\!|)/
is a valid stderr redirection operator.)  This should be applied on top
of Bart's 8184.

-zefram

diff -cr ../zsh-/Doc/Zsh/redirect.yo ./Doc/Zsh/redirect.yo
*** ../zsh-/Doc/Zsh/redirect.yo	Sun Oct 10 14:38:23 1999
--- ./Doc/Zsh/redirect.yo	Sun Oct 10 14:54:41 1999
***************
*** 92,102 ****
  )
  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.
  )
! item(tt(>>&) var(word))(
! Same as `tt(>>) var(word) tt(2>&1)'.
  )
  enditem()
  
--- 92,122 ----
  )
  xitem(tt(>&) var(word))
  item(tt(&>) var(word))(
! (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).
  )
! 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()
  
END


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-10 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-10 14:02 PATCH: >& documentation Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).