Stephen Gran on 6 Jan 2004 21:14:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] How to find parent in the shell?


On Tue, Jan 06, 2004 at 03:50:51PM -0500, gabriel rosenkoetter said:
> It's worth noting that $PPID is NOT documented to be defined by
> sh(1), though you may get away with that on Linux, since it uses
> bash(1) as sh(1). You should be aware of the portability
> implication, though. (This will NOT work on a traditional sh(1)
> implementation.)

Duly noted, thanks.  I will explicitly use bash instead of sh for this,
then.

-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Shame is an improper emotion invented   |
|  steve@lobefin.net             | by pietists to oppress the human race.  |
|  http://www.lobefin.net/~steve | -- Robert Preston, Toddy,               |
|  			         | "Victor/Victoria"                       |
 --------------------------------------------------------------------------

Attachment: pgps4gKiFxxOk.pgp
Description: PGP signature