Project

General

Profile

« Previous | Next » 

Revision 8279

lib/util.run: Added echo_func

View differences:

util.run
24 24

  
25 25
echo_run () { echo_cmd "$@"; "$@"; }
26 26

  
27
# usage: echo_func "$FUNCNAME" "$@"
28
echo_func () { echo_cmd "${BASH_SOURCE[1]}" "$@"; }
29

  
27 30
echo_stdin () { tee -a /dev/stderr; } # usage: input|echo_stdin|cmd
28 31

  
29 32
usage () { echo "Usage: $1" >&2; (exit 2); }

Also available in: Unified diff