結果 : bash how to capture exit code