Hi,
As far as I am able to tell, there is no well-known way to ascertain the
current pid of a subshell. You can write programs that return their
parent's pid, but that is pretty hacky. So, I dug through some sketchy
docs and examples about rolling your own built in BASH commands and
came up with something that almost works. Sigh. I'm sure it is pretty
close. Anybody with a few minutes to give me a hint? :) Thanks - Bruce