MacOS /usr/bin/python3 存根的退出代码是什么?

What is the exit code of the MacOS /usr/bin/python3 stub?

如果您 运行 /usr/bin/python3 在尚未安装系统 python3 的 MacOS 系统上,它会弹出一个对话框:“Xcode-select:注意:在"...

找不到开发者工具

现在不幸的是,在我的 macmini 上,我以前 运行 这个命令,所以 /usr/bin/python3 存根已被真正的 python 取代(python 3.8.9), 还缺 reseting/reinstall 我的 mac 不知道怎么找回来.

所以我的问题是,/usr/bin/python3 存根 的退出代码是什么?

我问的原因是我想检查一个脚本是否安装了系统 python3,并检查 return 代码,会比比较 stdout/stderr.

中的字符串

它给出了 1 的退出代码,见下文: