Revision 8905
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
24 | 24 |
|
25 | 25 |
unalias () { builtin unalias "$@" 2>&- || true; } # no error if undefined |
26 | 26 |
|
27 |
extern () { (unset -f "$1"; "$@") || exit; } |
|
28 |
|
|
27 | 29 |
#### exceptions |
28 | 30 |
|
29 | 31 |
# usage: try cmd...; ignore status; if catch status; then ...; fi; end_try |
Also available in: Unified diff
lib/util.sh: added extern ()