"if" statement in sh with -e flag

David Elliott dce at tekecs.UUCP
Sun Sep 25 06:24:31 AEST 1983


The example you gave does not need the 'set -e'. Make will stop if the
exit code returned by the "sh -c" is non-zero. In this case, if bar
fails, the exit code will be nonzero and Make will stop with the message :

	** Error code 1
	Stop.
	
			David



More information about the Comp.unix mailing list