Project

General

Profile

« Previous | Next » 

Revision 13350

bugfix: lib/sh/util.sh: stderr_matches(): need to separately display errors that were incorrectly suppressed due to $benign_error

View differences:

util.sh
1128 1128
	# handle any command error
1129 1129
	e="${PIPESTATUS_[0]}"
1130 1130
	local matches="$(errexit "${PIPESTATUS_[1]}"; exit2bool)"
1131
	if test "$matches"; then ignore_e "$ignore_e"; fi #also works w/ ignore_e=''
1131
	if test "$matches"; then ignore_e "$ignore_e" #also works w/ ignore_e=''
1132
	elif is_err && test "$benign_error";then benign_error= die_e #was suppressed
1133
	fi
1132 1134
	rethrow_exit #force-exit b/c caller's test of return status disables errexit
1133 1135
	
1134 1136
	# handle any filter error

Also available in: Unified diff