A simpler test is
s=bash
$s -c 'echo $$; '$s' -c "for f in 1 2 3; do echo \$\$ \$PPID; sleep 1;
done" & sleep 1; echo exit'
That shows the behaviour described above for bash and zsh. Given Jilles
says POSIX demands it I don't think this is a bug. If you think bash(1)
man page can be clearer then please re-open this bug.
** Changed in: bash (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/340571
Title:
Bash PPID is wrong when parent terminates
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs