Package: dash Version: 0.5.7-3 Severity: normal "set -e" seem to break execution of traps:
% cat traptest #!/bin/dash set -e trap "echo foo; exit" TERM sleep 1 & wait % ./traptest & p=$!; sleep 0.5; kill $p; wait [1] 2114 [1]+ Exit 143 ./traptest "foo" is not printed, and SIGTERM is not caught (Exit 143). For comparison, without "set -e": % cat traptest #!/bin/dash #set -e trap "echo foo; exit" TERM sleep 1 & wait % ./traptest & p=$!; sleep 0.5; kill $p; wait [1] 2119 foo [1]+ Done ./traptest Both cases work in bash. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

