small doc update
[errhandle.git] / README
1 Functions to deal with errors in bash
2
3 bash-trace: print stack trace (best bash stack trace ever).
4 errcatch: on error, do stack trace ane exit
5 errallow: undo errcatch
6 errexit: exit and print stack trace
7
8 the err* functions depend on bash-trace.
9
10 For scripts without any nested function calls, this is usually sufficient:
11 set -eE -o pipefail
12 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
13
14 Related: see my bash script template repo, at https://iankelling.org/git.
15
16 Please email me if you have a patches, bugs, feedback, or republish this
17 somewhere else: Ian Kelling <ian@iankelling.org>.