Project

General

Profile

« Previous | Next » 

Revision 11858

lib/sh/util.sh: stderr2stdout(): documented that this redirects fd 2->1 and log_fd (but not back to 2)

View differences:

util.sh
694 694
	echo_func
695 695
	# command causes log_fd to be re-filtered, so that stderr is also filtered.
696 696
	# this allows log-filtering out an otherwise-confusing benign error.
697
	"$@" 2> >(command tee /dev/fd/"$log_fd")
697
	"$@" 2> >(command tee /dev/fd/"$log_fd") # redirects 2->1,log_fd (*not* ->2)
698 698
}
699 699

  
700 700
stdout_contains() # usage: stderr2stdout cmd|stdout_contains echo_run grep ...

Also available in: Unified diff