Project

General

Profile

« Previous | Next » 

Revision 9474

lib/sh/util.sh: command(): log the function call using echo_func to assist debugging. (use a higher log_level because it's internal.)

View differences:

lib/sh/util.sh
542 542
# usage: [cmd_log_fd=|1|2|#] [redirs=...] [verbosity_min=] command extern_cmd...
543 543
# to view only explicitly-displayed errors: explicit_errors_only=1 script...
544 544
{
545
	kw_params cmd_log_fd redirs verbosity_min
545
	log++ echo_func; kw_params cmd_log_fd redirs verbosity_min
546 546
	# if no cmd_log_fd, limit log_fd in case command uses util.sh
547 547
	local cmd_log_fd="${cmd_log_fd-$log_fd}"
548 548
	local redirs=("${redirs[@]}")

Also available in: Unified diff