Project

General

Profile

« Previous | Next » 

Revision 13189

bugfix: lib/sh/util.sh: stderr_matches(): handle any error: need force-exit with rethrow_exit() because caller's test of return status disables errexit

View differences:

trunk/lib/sh/util.sh
879 879
	# handle any error
880 880
	e="${PIPESTATUS_[0]}" # 1st command's exit status -> $e
881 881
	ignore_e "$ignore_e" # also works w/ ignore_e=''
882
	rethrow
882
	rethrow_exit #force-exit b/c caller's test of return status disables errexit
883 883
	
884 884
	return "${PIPESTATUS_[1]}" # 2nd command's exit status -> $?
885 885
}

Also available in: Unified diff