trap 'printf %s\\n trap resurrects the shell!' ERR v1="$( madeup )" v2="$( printf %s\\n this displaysshown after trap)" echo "${v1:?first up#1 - still stderr}" "${v2:?dont see this anywayinvisible}" sh: command not found: madeup sh: v1: first up#1 - still stderr trap resurrects the shell! this displaysshown after the trap echo $? 0