Revision 9673
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
105 | 105 |
|
106 | 106 |
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; } |
107 | 107 |
|
108 |
pf() { declare -f "$@"; } # usage: pf function (prints func decl for debugging) |
|
108 | 109 |
|
110 |
|
|
109 | 111 |
#### exceptions |
110 | 112 |
|
111 | 113 |
# usage: cmd || { save_e; ...; rethrow; } |
Also available in: Unified diff
lib/sh/util.sh: added pf(), to print a function declaration for debugging