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

set -o errexit (set -e): exit script when command fails

set -o nounset (set -u): exit script when it tries to use undeclared variables

set -o pipefail: returns error from pipe `|` if any of the commands in the pipe fail (normally just returns an error if the last fails)



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: