Project

General

Profile

« Previous | Next » 

Revision 12210

lib/sh/util.sh: stderr2stdout(): clarified that fd 2 is not redirected back to fd 2

View differences:

trunk/lib/sh/util.sh
713 713
	# command causes log_fd to be re-filtered, so that stderr is also filtered.
714 714
	# this allows log-filtering out an otherwise-confusing benign error.
715 715
	"$@" 2> >(command tee /dev/fd/"$log_fd") >&41
716
		# redirects 2->{1,log_fd} (*not* ->2)
716
		# redirects 2->{1,log_fd} (2 is *not* redirected back to 2)
717 717
}
718 718

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

Also available in: Unified diff