Project

General

Profile

« Previous | Next » 

Revision 9673

lib/sh/util.sh: added pf(), to print a function declaration for debugging

View differences:

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