On 04/12/2018 23:57, Harald van Dijk wrote:
This has the benefit of fixing one other test case, a small modification
from one of Martijn Dekker's:
$SHELL -c 'trap "set -o bad@option" INT; kill -s INT $$' && echo BUG
Another test case, one that still fails:
trap exit INT
trap 'true; kill -s INT $$' EXIT
false
Here, inside the EXIT handler, "the command that executed immediately
preceding the trap action" is `false`, but inside the INT handler, it's
either `true` or `kill -s INT $$` (I think the latter, but it doesn't
matter). dash treats it as if it were still `false`.