Bash does not represent current pid and parent process-id correctly
in spawned processes.
The configuration information below is from a RedHat 9.0 system,
but I have confirmed the problem still exists using
bash version 3.1.17(1)-release on Fedora Core 6.
Configuration Information [Automatically
> Bash does not represent current pid and parent process-id correctly
> in spawned processes.
It does; the situations you include in your message represent what
Posix calls a "subshell environment", and $$ does not change in those
cases. Both $$ and $PPID is set when a shell initializes. When a