Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Klasiaster
on Oct 27, 2022
|
parent
|
context
|
favorite
| on:
Shell script best practices, from a decade of scri...
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: