Project

General

Profile

« Previous | Next » 

Revision 9740

lib/sh/util.sh: command(): print the log_fd in effect in case the user changes it

View differences:

util.sh
668 668

  
669 669
command() # usage: [cmd_log_fd=|1|2|#] [verbosity_min=] command extern_cmd...
670 670
{
671
	echo_func; kw_params cmd_log_fd redirs verbosity_min
671
	echo_func; kw_params log_fd cmd_log_fd redirs verbosity_min
672 672
	# if no cmd_log_fd, limit log_fd in case command uses util.sh
673 673
	local cmd_log_fd="${cmd_log_fd-$log_fd}"
674 674
	local redirs=("${redirs[@]}")

Also available in: Unified diff