Process ID of the current instance of Bash. This is not the same as the $$ variable, but it often gives
the same result.
由图可知$BASHPID由1713变为了1760!
由于我这里用crt登录的 bash显示为:‘’-bash“(其实为一进程);
也可以用:ps -ef | grep echo $$
| grep -v grep | grep -v ps显示当前进程的ID