On 9/28/22 11:25 PM, Xi Ruoyao wrote:
(Sorry for cross posting, but the topic is related to both side)
In Bash-5.2 there is a change:
"ff. Some fixes to how subshells modify $SHLVL."
The single change affects pipelines for which bash optimizes out a second
fork, so it doesn't decrement $SHLVL twice. It comes from this 2020 report:
https://lists.gnu.org/archive/html/help-bash/2020-10/msg00012.html
(the ssh aspect of this report is a red herring).
--
``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/