I have confirmed that the following works in sh, bash, csh, tcsh, and zsh:
do shell script “ps -o ppid= -p $$”