📌  相关文章
📜  shell 脚本中的 $$ - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:36.580000             🧑  作者: Mango

代码示例1
$$ is the process ID (PID) of the script itself.

$BASHPID is the process ID of the current instance of Bash. This is not the same as the $$ variable, but it often gives the same result.