Revision 9794
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
40 | 40 |
|
41 | 41 |
#### stubs |
42 | 42 |
|
43 |
__caller_indent='log_indent="$log_indent$log_indent_step"' |
|
44 |
alias caller_indent="$__caller_indent" |
|
45 |
alias indent="declare $__caller_indent" |
|
46 |
|
|
43 | 47 |
function echo_func() { :; } |
44 | 48 |
alias echo_func='"echo_func" "$FUNCNAME" "$@" && indent || true' |
45 | 49 |
|
... | ... | |
317 | 321 |
: "${log_indent_step=| }" "${log_indent=}" |
318 | 322 |
export log_indent_step log_indent # propagate to invoked commands |
319 | 323 |
|
320 |
__caller_indent='log_indent="$log_indent$log_indent_step"' |
|
321 |
alias caller_indent="$__caller_indent" |
|
322 |
alias indent="declare $__caller_indent" |
|
324 |
# see indent alias in stubs |
|
323 | 325 |
|
324 | 326 |
|
325 | 327 |
fi # load new aliases |
Also available in: Unified diff
bugfix: lib/sh/util.sh: added missing stub for indent alias (used by echo_func alias, which is a stub). without the stub, /usr/bin/indent would be used instead on Mac.