Svelte Hacker News logo
  • top
  • new
  • show
  • ask
  • jobs
  • about

Bash scripts are brittle – simple error handling in bash

notifox.com

9 points by Meetvelde 7 hours ago

vdm an hour ago

> We can assign the value of $? to an environment variable

exit_code is not an environment variable?

https://www.gnu.org/software/bash/manual/html_node/Shell-Par...

  • Meetvelde 42 minutes ago

    Oops, pretty sure I meant a regular variable. Will modify the post, thanks for pointing this out.