v****c 发帖数: 32 | 1 譬如:
g++ -c arrays.cpp >& file.txt
if ( $status != 0 ) then
echo "Errors compiling arrays.cpp."
exit
endif | h***z 发帖数: 233 | 2 It's the exit code of the command that was just executed. In your example,
it would be the exit code of 'g++ -c arrays.cpp'.
【在 v****c 的大作中提到】 : 譬如: : g++ -c arrays.cpp >& file.txt : if ( $status != 0 ) then : echo "Errors compiling arrays.cpp." : exit : endif
| v****c 发帖数: 32 | 3 Thanks, hnjjz.
,
【在 h***z 的大作中提到】 : It's the exit code of the command that was just executed. In your example, : it would be the exit code of 'g++ -c arrays.cpp'.
| f**y 发帖数: 138 | |
|