Project

General

Profile

« Previous | Next » 

Revision 9683

lib/sh/util.sh: command(): removed 2>&$err_fd, which is no longer needed because $err_fd is now 2 (in general, there is probably not a need for a special $err_fd var, because 2 is already stderr)

View differences:

util.sh
606 606
	
607 607
	cmd2rel_path; echo_redirs_cmd
608 608
	
609
	# add after echoing command so it isn't echoed at the end of every command
610
	if test "$cmd_log_fd" != 2; then # fd 2 not used for logging
611
		redirs+=("2>&$err_fd") # assume fd 2 used for errors
612
	fi
613
	
614 609
	(
615 610
		if can_log; then indent; fi
616 611
		log++ set_fds "${redirs[@]}"

Also available in: Unified diff