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
11 For scripts without any nested function calls, this is usually sufficient:
12 set -eE -o pipefail
13 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
14
15
16 Related: see my bash script template repo.
17
18 Please email me if you have a patches, bugs, feedback, or republish this
19 somewhere else: Ian Kelling <ian@iankelling.org>.