📜  mac 检查 shell 版本 - Shell-Bash 代码示例

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

代码示例1
To see what shell is currently running (which may or may not be your default shell), use:
ps -o comm= $$

To see what shell is your default shell, run:
echo "$SHELL"