Re: [Help-bash] Waiting for a sub-process to finish
From:
Chet Ramey
Subject:
Re: [Help-bash] Waiting for a sub-process to finish
Date:
Thu, 1 Jun 2017 16:35:17 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
On 6/1/17 4:27 PM, Greg Wooledge wrote:
> Other than that, bash 4.4 added this new feature:
>
> u. Bash now allows waiting for the most recent process substitution, since it
> appears as $!.
>
> I believe you have to explicitly pass the PID to wait for those, rather
> than just calling wait with 0 arguments, but it's not something I've
> played with much.
It's always appeared as $!, and you can wait for it the same as any other
process. The changelog entry refers to wait without arguments, which is
supposed to wait for all background processes.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/