Project

General

Profile

« Previous | Next » 

Revision 13215

bugfix: lib/sh/util.sh: stderr_matches(): only set benign_error=1 if the matched error occurred

View differences:

trunk/lib/sh/util.sh
1081 1081
stderr_matches() # usage: pattern=... [ignore_e=#] stderr_matches cmd...
1082 1082
{
1083 1083
	echo_func; kw_params pattern ignore_e; : "${pattern?}"
1084
	if test "$ignore_e"; then local benign_error=1; fi
1085 1084
	
1086 1085
	# not necessary to allow callers to handle the error themselves (which would
1087 1086
	# require *every* caller to wrap this function in prep_try/rethrow), because

Also available in: Unified diff