[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'wait' in command group in pipeline fails to recognize child process

From: Chet Ramey
Subject: Re: 'wait' in command group in pipeline fails to recognize child process
Date: Wed, 23 Jun 2021 09:21:08 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 6/22/21 8:00 PM, Lawrence Velázquez wrote:
On Tue, Jun 22, 2021, at 6:32 PM, Martin Jambon wrote:
I would also mention pipelines here, since these are more commonly
used than () subshells.  I don't know if there are other ways of
creating subshells.  If that's all, I think it would be valuable
to mention those two cases rather than just one.

There are also command substitutions and any commands run asynchronously.

The documentation specifies that command substitutions, asynchronous
commands, () subshells, and pipeline elements are all run in subshell

The description makes it clear that a subshell is a duplicate of its
parent shell, with signal dispositions as the exception.

If the description applies to all subshells, not just ones inside
(...), then perhaps the documentation should just omit "()" instead
of spelling out every possible way a subshell can be 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/

reply via email to

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