Revision 8647
Added by Aaron Marcuse-Kubitza over 11 years ago
util.run | ||
---|---|---|
33 | 33 |
# usage: echo_func "$@" |
34 | 34 |
echo_func () |
35 | 35 |
{ |
36 |
echo_cmd "${BASH_SOURCE[1]}:${BASH_LINENO[0]}" "${FUNCNAME[1]}" "$@" |
|
36 |
local script="$(canon_rel_path "${BASH_SOURCE[1]}")" |
|
37 |
echo_cmd "$script:${BASH_LINENO[0]}" "${FUNCNAME[1]}" "$@" |
|
37 | 38 |
} |
38 | 39 |
|
39 | 40 |
echo_stdin () { tee -a /dev/stderr; } # usage: input|echo_stdin|cmd |
Also available in: Unified diff
lib/util.run: echo_func (): use new canon_rel_path() to resolve .. in the script path, so it's easier to see where the script is actually located