結果 : bash get exit code of function