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

Re: Redirection bug for stderr?



OK, thanks for the explanation! :)

On 14-11-20 16:58:59, Stephane Chazelas wrote:
> 2014-11-20 16:08:16 +0000, Peter Stephenson:
> [...]
> >     % { print output; print error >&2 } 2>&1 >foo.out | sed 's/error/erratic'
> [...]
> >   So if you want to turn this effect off, you need
> >   to unset the option `MULTIOS'.
> > 
> 
> Or:
> 
> 
> % { print output; print error >&2 } 2>&1 >&- >foo.out | sed 's/error/erratic/'
> 
> 
> (note the typo above (missing / in s/foo/bar).
> 
> -- 
> Stephane
> 

-- 
Pierre Neidhardt

Ma Bell is a mean mother!



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