Revision 12199
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sh | ||
---|---|---|
720 | 720 |
alias stderr_matches='prep_try; "stderr_matches" ' |
721 | 721 |
# last space alias-expands next word |
722 | 722 |
|
723 |
fi # load new aliases |
|
724 |
if self_being_included; then |
|
725 |
|
|
723 | 726 |
function ignore_err_msg() # usage: pattern=... ignore_err_msg cmd... |
724 | 727 |
{ |
725 | 728 |
echo_func; kw_params pattern; : "${pattern?}" |
726 |
prep_try; stderr_matches "try" "$@" || rethrow # try: suppress error exit
|
|
729 |
stderr_matches "try" "$@" || rethrow # try: suppress error exit |
|
727 | 730 |
} |
728 | 731 |
alias ignore_err_msg='"ignore_err_msg" ' # last space alias-expands next word |
729 | 732 |
|
Also available in: Unified diff
lib/sh/util.sh: ignore_err_msg(): use new stderr_matches alias, which includes prep_try (requires loading new aliases)