Project

General

Profile

« Previous | Next » 

Revision 9293

lib/sh/util.sh: command__set_fds(): set the src fd outside of the set_fds call, for clarity

View differences:

util.sh
437 437
{
438 438
	ensure_nested_func
439 439
	if test "$cmd_log_fd" = "$log_fd"; then log++; log++; fi # default case
440
	set_fds "$cmd_log_fd>$(if (log++; can_log); then \
441
	echo "&$log_fd"; else echo /dev/null; fi)"
440
	local src
441
	if (log++; can_log); then src="&$log_fd"; else src=/dev/null; fi
442
	set_fds "$cmd_log_fd>$src"
442 443
}
443 444

  
444 445
# auto-echo common external commands

Also available in: Unified diff