Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
a_bonobo
on May 12, 2017
|
parent
|
context
|
favorite
| on:
When Bash scripts bite
This works but it gets ugly when you have to use 'set -e' everywhere:
set -e
foo() { /bin/false echo "foo" } echo "$(set -e; foo)"
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
set -e