Just a handful of options to make shellscripts much more failsafe and resilient.
Everyone hates debugging, but with IPython, we can at least get an interactive debugging-shell at our code-point of choice.