[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BASH_SUBSHELL is not incrementing when part of a pipeline
From: |
Chet Ramey |
Subject: |
Re: BASH_SUBSHELL is not incrementing when part of a pipeline |
Date: |
Tue, 8 Aug 2023 10:06:48 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 8/7/23 9:56 AM, Kamil Cukrowski Priv wrote:
Hi, when BASH_SUBSHELL is part of a pipeline with just a simple command it
does not increment. Consider the following:
Yes. BASH_SUBSHELL increments for asynchronous commands (&), commands
explicitly in subshells, compound commands in pipelines, coprocesses,
process substitution, and command substitution.
--
``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/