Project

General

Profile

« Previous | Next » 

Revision 12759

lib/sh/util.sh: added dp(), which debug-prints a message

View differences:

trunk/lib/sh/util.sh
60 60
function echo_vars() { :; }
61 61

  
62 62

  
63
#### debugging
64

  
65
dp() { echo "$@" >&2; } # usage: pv var... # debug-prints message
66

  
67

  
63 68
#### logic
64 69

  
65 70
not() { ! "$@"; } # usage: wrapper_cmd not wrapped_cmd... # inverts exit status

Also available in: Unified diff