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

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.

Agreed.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to