Re: parent trap EXIT appears to subshell but is not used

2021-03-31 Thread Robert Elz
Date:Tue, 30 Mar 2021 07:33:08 +0300 From:=?UTF-8?B?T8SfdXo=?= Message-ID: | The same goes for the job table right? Yes, though there's no posix explanation for that (no expectation there that code would ever want to examine it). | None of ash derivatives (inc

Re: parent trap EXIT appears to subshell but is not used

2021-03-29 Thread Oğuz
29 Mart 2021 Pazartesi tarihinde Robert Elz yazdı: > Date:Mon, 29 Mar 2021 17:31:23 +0200 > From:Valentin Lab > Message-ID: <604a4dab-afc5-cd5e-ee80-64d3dfb2e...@kalysto.org> > > > | In 4.3, this makes sense to me. EXIT trap is not available and not > executed. >

Re: parent trap EXIT appears to subshell but is not used

2021-03-29 Thread Robert Elz
Date:Mon, 29 Mar 2021 17:31:23 +0200 From:Valentin Lab Message-ID: <604a4dab-afc5-cd5e-ee80-64d3dfb2e...@kalysto.org> | In 4.3, this makes sense to me. EXIT trap is not available and not executed. | | In >4.3, I don't understand: 'trap -p' is displaying a trap

parent trap EXIT appears to subshell but is not used

2021-03-29 Thread Oğuz
29 Mart 2021 Pazartesi tarihinde Valentin Lab yazdı: > Hi, > > I have encountered an issue when running some bash code from 4.3 that > behave in an unexpected way on 4.4 or 5 ... I've managed to pinpoint the > exact issue on my end. > > Here is the code: > > > ## > trap -- 'echo

parent trap EXIT appears to subshell but is not used

2021-03-29 Thread Valentin Lab
Hi, I have encountered an issue when running some bash code from 4.3 that behave in an unexpected way on 4.4 or 5 ... I've managed to pinpoint the exact issue on my end. Here is the code: ## trap -- 'echo bar' EXIT ( echo -n 'Subshell TRAP EXIT: ' trap -p EXIT echo )