$BASH变量保存的是shell的路径: #!/bin/sh echo $BASH 有两种方法来输出目前Bash进程的PID: #!/bin/sh echo $BASHPID 和 #!/bin/sh echo $$