News for hackers. Stuff that matters.
Re:GNU make insanity: finding the value of the -j parameter by Someone on Saturday March 28, 2015 @07:40PM (#9283228)
If you are willing to use /proc, you basically have Linux, and can assume just as well that your shell is bash.

If so, $$ is the easiest way to get the PID of the current shell. That works in several other shells, too, but I am not sure sh is guaranteed to have it (FreeBSD's sh has it. See http://www.freebsd.org/cgi/man.cgi?query=sh)

There are no comments on this comment yet.