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

Re: pipes and redirection



>The goal is to get stdout to go to a file, and stderr to be piped to
>another program.

(print -u2 This is stderr;print This is stdout) 1>test 2>>(tr a-z A-Z > test2)

Unfortunately the command inside >() gets executed asynchronously, but
that suffices in many cases.  (Out of interest, why is it
asynchronous?  I've always thought that synchronous execution, as with
normal pipelines, would be more natural and usually more useful.)

-zefram



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