Bash
From Attie's Wiki
Useful Arguments
<cpde>-e</code> | treat any non-zero return as an error, and quit |
-u |
treat any use of an unset variable as an error, and quit |
example
#!/bin/bash -eu echo "hi" false echo "there"
Command Not Found
function command_not_found_handle { echo "Hello" return 127 }