On 12/30/22 6:09 AM, Christoph Anton Mitterer via austin-group-l at The
Open Group wrote:
Does "shall be executed before the shell terminates" mean in general [...]
I think so, but perhaps it should say "terminates normally" instead, or
whatever phrase that leaves it clearly unspecified whether termination
due to reception of an uncaught signal triggers the EXIT trap or not;
because there is no common behavior among shells. ash clones run the
EXIT trap only when terminating normally; bosh and zsh follow suit
unlike bash (except the version shipped with solaris 10) and ksh; and
among pdksh clones only mksh runs it upon receiving a SIGINT.