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 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



reply via email to

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