[Top][All Lists]

[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

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.

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

[Prev in Thread] Current Thread [Next in Thread]