Shell script 마지막 실행 된 Command의 exit status 가져오기 마지막 실행 된 Command의 exit status 가져오기 #!/usr/bin/env bash true echo $? false echo $? 0 1