Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: I/O redirection problem in "zsh"



Matthias Scheler wrote:
>Is there a better portable way to redirect stderr to the pipe but
>ignore stdout?

	{ command... 2>&1 >/dev/null; } | another-command...

Brace grouping effectively stops multios being accumulated, so later
redirections have their normal non-multio effect.  There's also

	command... 2>>( another-command... ) >/dev/null

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author