Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aidenn0
on Oct 10, 2020
|
parent
|
context
|
favorite
| on:
Bash Error Handling
Here's a workaround for modifying scripts while they are running; it works because function bodies are read and parsed entirely when they are defined.
main() { script goes here exit } main "$@"
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: