結果 : bash capture command output and exit code