Project

General

Profile

« Previous | Next » 

Revision 9178

lib/sh/util.sh: echo_*func aliases: increase the indent for the duration of the function call. this causes function calls to be displayed in an indented call-tree structure, which makes the verbose output much easier to understand.

View differences:

lib/sh/util.sh
239 239
	local script="$(canon_rel_path "${BASH_SOURCE[1]}")"
240 240
	echo_cmd "$script:${BASH_LINENO[0]}" "${FUNCNAME[1]}" "$@"
241 241
}
242
alias echo_func='echo_func "$@"'
243
alias echo_minor_func='(log++; echo_func)'
242
alias echo_func='{ "echo_func" "$@"; indent; }'
243
alias echo_minor_func='{ (log++; "echo_func"); indent; }'
244 244

  
245 245
## vars
246 246

  

Also available in: Unified diff