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

Re: Redirect &2 into a command - HowTo



Helmut Jarausch wrote:
>Is there any possibility to redirect STDERR to a command like 'xless'
>without redirecting  STDOUT as well?

The simplest way is

foo 2>>(xless)

but this executes the command asynchronously, which may not be what
you want.  To do it synchronously:

{ { foo 1>&3 } 2>&1 | xless } 3>&1

-zefram



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