[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parent trap EXIT appears to subshell but is not used
From: |
Oğuz |
Subject: |
Re: parent trap EXIT appears to subshell but is not used |
Date: |
Tue, 30 Mar 2021 07:33:08 +0300 |
29 Mart 2021 Pazartesi tarihinde Robert Elz <kre@munnari.oz.au> yazdı:
> Date: Mon, 29 Mar 2021 17:31:23 +0200
> From: Valentin Lab <valentin.lab@kalysto.org>
> Message-ID: <604a4dab-afc5-cd5e-ee80-64d3dfb2ef35@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 that is not
> | really enabled ?
>
> Yes. The reason is that there needs to be a way to discover what
> the traps are set to
>
The same goes for the job table right? None of ash derivatives (including
netbsd sh) seems to do that right though. `( sleep 3 & ( sleep 1 & wait )
)' hangs for three seconds instead of one, which doesn't happen on other
shells.
--
Oğuz