Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
phaemon
on April 16, 2014
|
parent
|
context
|
favorite
| on:
Better bash in 15 minutes
If you're using:
set -o errexit # or set -e if you prefer
Then you probably also want:
set -o pipefail
Otherwise, it only checks that the last command succeeds, so something like:
ls *.ssjkfle | wc -l
will actually continue as success despite the "ls" failing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: