The behavior seems to have changed in later version. I tested dash 0.5.10.2-6.
There EXIT trap is not run at all, if -e is used, and you use Ctrl-C. But if
you remove the 'exit 2' from the signal trap, EXIT trap will be run regardless
of -e setting, when you press Ctrl-C. That is not intuitive.
If you can confirm, please update the report.
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dash in Ubuntu.
set -e reverses order of signal handlers
Status in dash:
Mail list logo