>In a shell (including all its subshells) $$ expands to the same thing. >It neither is, nor has ever been, "the pid of the current sh process", >unless that process happens to be the top level shell environment. >Once a shell starts, $$ is a constant throughout all code that shell >runs (the only way to get a different $$ is explicitly (incl via #!) >invoke a new shell).
Fair enough! That's one of those corner cases I wasn't quite aware of the rules of; like I said, I didn't test that. >ps: xv however is kind of dated! It must be, as I still use it as well, >and I am very dated. Ha! Tell me about it. And last time I used xv, it didn't even support JPEGs. I just wanted to pick some kind of image viewer that others might have heard of. --Ken
