Project

General

Profile

« Previous | Next » 

Revision 12801

lib/sh/util.sh: stderr_matches(): moved prep_try/rethrow into the function itself so that callers don't have to wrap this function in a complex sequence of prep_try/rethrow statements

View differences:

util.sh
799 799
	set -o errexit
800 800
	
801 801
	# handle any error
802
	e="${PIPESTATUS_[0]}"      # 1st command's exit status -> $e
802
	e="${PIPESTATUS_[0]}" # 1st command's exit status -> $e
803 803
	ignore_e "$ignore_e" # also works w/ ignore_e=''
804 804
	rethrow_exit
805 805
	

Also available in: Unified diff