Revision 8298
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/util.run | ||
---|---|---|
23 | 23 |
echo_run () { echo_cmd "$@"; "$@"; } |
24 | 24 |
|
25 | 25 |
# usage: echo_func "$FUNCNAME" "$@" |
26 |
echo_func () { echo_cmd "${BASH_SOURCE[1]}:${BASH_LINENO[1]}" "$@"; }
|
|
26 |
echo_func () { echo_cmd "${BASH_SOURCE[1]}:${BASH_LINENO[0]}" "$@"; }
|
|
27 | 27 |
|
28 | 28 |
echo_stdin () { tee -a /dev/stderr; } # usage: input|echo_stdin|cmd |
29 | 29 |
|
Also available in: Unified diff
lib/util.run: echo_func: Fixed bug where need to use BASH_LINENO0 for the line #s to match up with the files. For some reason the required array indexes for BASH_SOURCE (1) and BASH_LINENO (0) differ by one.