Subshell exit trap is not invoked if shell exit trap also set

2019-03-25 Thread Konstantin Andreev
3, bash 4.1.17(1)-release (i386-pc-solaris2.11) CentOS Linux 7.2.1511, bash 4.2.46(1)-release (x86_64-redhat-linux-gnu) CentOS Linux 7.2.1511, bash 5.0.0(1)-release (x86_64-pc-linux-gnu) Best regards, Konstantin Andreev

Re[3]: Subshell exit trap is not invoked if shell exit trap also set

2019-03-26 Thread Konstantin Andreev
0.5.11-0.175.3.1.0.3.0 What can I do to help you isolate this issue? Best regards, Konstantin Andreev Chet Ramey, 26 Mar 2019 16:57 MSK: I can't reproduce this using RHEL 7 or Mac OS X using bash-5.0.3. Konstantin Andreev, 25 Mar 2019 22:48 MSK: Consider the simple `ssxtrap&#x

Re[5]: Subshell exit trap is not invoked if shell exit trap also set

2019-03-26 Thread Konstantin Andreev
btw, I can undertake some debugging, but I have no time to investigate how the bash code works. If you may provide me with enough details so that I would know where to look into the control flow, I would investigate what's happening. Regards, Konstantin Konstantin Andreev, 26 Mar 2019

Re[7]: Subshell exit trap is not invoked if shell exit trap also set

2019-03-26 Thread Konstantin Andreev
ast. Chet Konstantin Andreev, 26 Mar 2019 19:44 MSK: bash-5.0.3, Just built and tested it. The systems are x86-64. + Debian GNU/Linux buster/sid (pre-10): works (both exit traps are invoked) - CentOS Linux 7.2.1511:NOT work (subshell exit trap is NOT invoked) - Oracle So

Re[9]: Subshell exit trap is not invoked if shell exit trap also set

2019-03-27 Thread Konstantin Andreev
Dmitry Goncharov, 26 Mar 2019 18:58 MSK: Double check that this reproduces with bash-5. I was able to reproduce this with bash-4.2 and earlier. This does not reproduce for me with bash-4.4 and later. Konstantin Andreev, 25 Mar 2019 22:48 MSK: Verified on: Solaris 11.3, bash 4.1.17(1