BASHPID

suggest change

Process ID (pid) of the current instance of Bash. This is not the same as the $$ variable, but it often gives the same result. This is new in Bash 4 and doesn’t work in Bash 3.

~> $ echo "\$\$ pid = $$  BASHPID = $BASHPID"
$$ pid = 9265  BASHPID = 9265

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Internal variables:
*
*
* HOME
* etc...
*
*
*
* PWD
* IFS
*
* OLDPWD
* PATH
* OSTYPE
* PPID
* EDITOR
* BASHPID
*
* RANDOM
* SHLVL
* LINENO
* GROUPS
* UID

Table Of Contents