Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a way to determine whether the exit occurred due to the bash script finishing successfully, or due to an error (via set -o errexit)?


You could trap the error.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: