Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
k3vinw
3 months ago
|
parent
|
context
|
favorite
| on:
Advanced Shell Scripting with Bash (2006) [pdf]
One of the first things I do is turn on errexit and pipefail options, but trapping ERR and combining with LINENO to catch silent exits is brilliant!
pottmi
3 months ago
[–]
You will like the final version of the traperr ERR function. It looks to create a "stack trace" type dump of where you are in the script when it fails.
See it here:
https://github.com/pottmi/stringent.sh
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: