help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] stdout and stderr to two different process substitutions


From: Peng Yu
Subject: Re: [Help-bash] stdout and stderr to two different process substitutions
Date: Wed, 25 Jan 2012 08:36:22 -0600

> Test case:
>  $ { echo STDOUT ; echo STDERR 1>&2 ;} > >(gzip > xx.gz) 2> >(tee yy 1>&2)

It is a little unclear to me how "tee yy 1>&2" works here.

If I just call "tee yy", nothing will be printed to stdout. "STDERR"
comes from stdin. How come "1>&2" redirect stdin to stderr? Thanks!

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]