今天,我看到了一个奇怪的问题。我的构建失败了。但是,工作状态显示为成功。 退出状态被标记为0。我可以看到下面显示的日志。
**make: *** [select-system] Error 2**
+ '[' 2 '!=' 0 ']'
+ exit 1
make: *** [dirrm] Error 1
if ( 2 != 0 ) then
exit 0
为什么从0开始退出?在我的shell脚本中,我有以下内容。
make command <parameters>
if ($status != 0) then
exit $status
endif
在内部是否选中“状态”变量显示为0。它的值必须为“ 2”吗?