Project

General

Profile

« Previous | Next » 

Revision 8905

lib/util.sh: added extern ()

View differences:

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