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 16:27:55 -0600
On Wed, Jan 25, 2012 at 3:20 PM, Bob Proulx <address@hidden> wrote:
> Greg Wooledge wrote:
>> Bob Proulx wrote:
>> > Â Apply 2> >(tee yy), start with tee yy first.
>> >
>> > Â Â Â Â Â Â Â | Â | --err:2-->
>> > Â Â --in:0-->|tee|
>> > Â Â Â Â Â Â Â | Â | --out:1-->yy
>>
>> But that does not. Â tee inherits foo's stdout, so its out:1 arrow
>> should be pointing to the /dev/fd/63 thing. Â tee will open the file
>> "yy" as a new FD, which is not show in your diagram at all -- it won't
>> open it as stdout.
>
> Yes! Â Of course you are correct. Â I was distracted by yy being an
> explicit write target for tee and misdrew the picture. Â My bad.
>
> I am not going to correct post an updated drawing however. Â Hopefully
> the idea behind it was sufficient to accomplish goal of showing how
> things are piped and plumbed together. Â :-)
Thanks everybody for the clarification. Now I get it. Everything boils
down to the two key points mentioned by Chet.
--
Regards,
Peng