Re: shell trap vs inherited signal dispositions

Valery Ushakov <[email protected]> Fri, 2 May 2025 22:56:43 +0300
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Fri, May 02, 2025 at 15:21:59 +0200, Edgar Fuß wrote:

> A shell must not trap signals that are ignored when the shell is called.

I am aware of that.  I don't see what you mean by that comment given
the question and how it's relevant.

"trap -- - HUP" means the disposition for HUP is SIG_DFL, which is
suprising, given that nohup makes it ignored.

bash that reports "trap -- '' HUP" tells that the disposition for HUP
is SIG_IGN, as expected under nohup.

-uwe