[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wait inside subshell waits for sibling
From: |
Chet Ramey |
Subject: |
Re: wait inside subshell waits for sibling |
Date: |
Thu, 27 Oct 2022 16:00:29 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 |
On 10/23/22 10:25 PM, Emanuele Torre wrote:
I don't think the process running `cat' is a sibling of the subshell.
It's not, but in this case it doesn't matter. `wait' without arguments
should wait for the last process substitution only if it's the same as
$!. You can wait for other process substitutions individually if you
save $! after they're created.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/