Revision 12202
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
707 | 707 |
stdout_contains() # usage: stderr2stdout cmd|stdout_contains echo_run grep ... |
708 | 708 |
{ echo_func; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; } |
709 | 709 |
|
710 |
function stderr_matches() # usage: if pattern=... stderr_matches cmd...; then... |
|
710 |
function stderr_matches() # usage: if pattern=... stderr_matches cmd...; \ |
|
711 |
# then ...; fi; rethrow # manually rethrow any command error (if applicable) |
|
711 | 712 |
# exit status of cmd is placed in $e for use with exception handling |
712 | 713 |
{ |
713 | 714 |
echo_func; kw_params pattern; : "${pattern?}" |
Also available in: Unified diff
fix: lib/sh/util.sh: stderr_matches(): usage: documented that now need to manually rethrow any command error, if applicable