Control: tags -1 wontfixThe bash maintainer has confirmed in https://lists.gnu.org/archive/html/bug-bash/2024-03/msg00212.html that this behavior of trap is both intended and allowed by the spec, although other shell behave differently.
Regards, -- Gioele Barabucci