Bug#929178: bash: in a subshell trap displays the trap definition of main

2024-03-25 Thread Gioele Barabucci
Control: tags -1 wontfix The 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

Bug#929178: bash: in a subshell trap displays the trap definition of main

2019-05-18 Thread Bernd Schumacher
Package: bash Version: 5.0-4 Severity: normal Tags: upstream Dear Maintainer, In a bash script I want to display the actual trap EXIT definition. But in a subshell not the trap definition of the subshell, but of the main script is displayed. To show the problem I use the script trap_handling: