Project

General

Profile

« Previous | Next » 

Revision 12978

lib/sh/util.sh: added rethrow!(), which always errexits, even if $e = 0

View differences:

trunk/lib/sh/util.sh
228 228
declare e="$(if test "$e_" = 0; then echo "${e:-0}"; else echo "$e_"; fi)"'
229 229

  
230 230
rethrow() { errexit "${e:-0}"; } # only does anything if $e != 0
231
rethrow!() { rethrow && false; } # always errexit, even if $e = 0
231 232

  
232 233
fi # load new aliases
233 234
if self_being_included; then

Also available in: Unified diff