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/

Reply via email to