Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: I/O redirection problem in "zsh"
- X-seq: zsh-workers 17911
- From: Zefram <zefram@xxxxxxxx>
- To: Matthias Scheler <tron@xxxxxxxxx>
- Subject: Re: I/O redirection problem in "zsh"
- Date: Wed, 6 Nov 2002 10:10:50 +0000
- Cc: Borzenkov Andrey <Andrej.Borsenkow@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- In-reply-to: <20021025114451.GB28474@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20021025104047.GA27855@xxxxxxxxxxxxxxxx> <6134254DE87BD411908B00A0C99B044F03A0B4B6@MOWD019A> <20021025114451.GB28474@xxxxxxxxxxxxxxxx>
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