Re: Process Substitution backgrounds the command list?
From:
Chet Ramey
Subject:
Re: Process Substitution backgrounds the command list?
Date:
Thu, 13 Sep 2007 22:15:51 -0400
User-agent:
Thunderbird 2.0.0.6 (Macintosh/20070728)
Bob Proulx wrote:
> I am confused by the order of operations of this following:
>
> $ { echo hello world | tee >(md5sum 1>&2) ;} ; echo goodbye
> hello world
> goodbye
> $ 6f5902ac237024bdd0c176cb93063dc4 -
>
> Shouldn't bash wait for the subprocess finish before the next command
> is invoked? I did not expect the >(list) to continue to run in the
> background after the entire pipeline returned.
>
> Is there a way to explicitly wait for that process in order to
> synchronize subsequent operations?
No, there's no way to wait for it.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/