[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
$PPID behave differently in 5.1 and 4.3
From: |
leodream |
Subject: |
$PPID behave differently in 5.1 and 4.3 |
Date: |
Sun, 16 May 2021 01:38:13 -0700 (MST) |
I created 2 scripts like below
<http://gnu-bash.2382.n7.nabble.com/file/t3303/Screenshot_20210516_163002.png>
Running the test1.sh with bash 5.1 will have different PPID printed by the
last test2.sh call when it is executed in sub-shell.
For bash 4.3, the script will output consistent PPID.
<http://gnu-bash.2382.n7.nabble.com/file/t3303/Screenshot_20210516_163523.png>
It looks like something had been changed regarding the sub-shell execution
in later Bash versions?
--
Sent from: http://gnu-bash.2382.n7.nabble.com/
- $PPID behave differently in 5.1 and 4.3,
leodream <=