Revision 12764
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sh | ||
---|---|---|
784 | 784 |
# exit status of cmd is placed in $e for use with exception handling |
785 | 785 |
{ |
786 | 786 |
echo_func; kw_params pattern ignore_e; : "${pattern?}" |
787 |
if test "$ignore_e"; then local benign_error=1; fi |
|
787 | 788 |
|
788 | 789 |
set +o errexit # avoid errexiting since @PIPESTATUS will be used instead |
789 | 790 |
{ stderr2stdout "$@"|stdout_contains echo_run grep -E "$pattern"; } 41>&1 |
Also available in: Unified diff
fix: lib/sh/util.sh: stderr_matches(): when using $ignore_e, also set benign_error=1 to suppress the highlighting of the error