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

Missing: When using "set -o pipefail" you should also catch any non-zero return codes that you want to accept, e.g., "{ grep -o pattern file || true ; } | sed pattern" to let the command continue (if desired) to execute even if pattern isn't found.


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

Search: