echo $? 上个命令的退出状态,或函数的返回值。 ref:http://c.biancheng.net/cpp/view/2739.html 转载于:https://www.cnblogs.com/youchihwang/p/11052780.html