Revision 12217
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
711 | 711 |
{ |
712 | 712 |
echo_func |
713 | 713 |
# command causes log_fd to be re-filtered, so that stderr is also filtered. |
714 |
# this allows log-filtering out an otherwise-confusing benign error.
|
|
715 |
"$@" 2> >(command tee /dev/fd/"$log_fd") >&41
|
|
716 |
# redirects 2->{1,log_fd} (2 is *not* redirected back to 2)
|
|
714 |
# fd 2 is *not* redirected back to fd 2, to allow log-filtering out an
|
|
715 |
# otherwise-confusing benign error.
|
|
716 |
"$@" 2> >(command tee /dev/fd/"$log_fd") >&41 # redirects 2->{1,log_fd}
|
|
717 | 717 |
} |
718 | 718 |
|
719 | 719 |
stdout_contains() |
Also available in: Unified diff
lib/sh/util.sh: stderr_matches(): documented that the purpose of not redirecting fd 2 back to fd 2 is to allow log-filtering out an otherwise-confusing benign error