Y
Hacker News
new
|
ask
|
show
|
jobs
by
wolletd
843 days ago
Well, otherwise `if grep "line" $file; then` wouldn't work, which in my opinion is the primary use case for grep in scripts.
I'd still prefer a `grep <args> || true` over not having `set -e` for the whole file.