bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "wait" loses signals


From: Harald van Dijk
Subject: Re: "wait" loses signals
Date: Thu, 20 Feb 2020 09:16:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Thunderbird/73.0

On 20/02/2020 01:55, Robert Elz wrote:
     Date:        Wed, 19 Feb 2020 23:53:56 +0000
     From:        Harald van Dijk <address@hidden>
     Message-ID:  <address@hidden>


   | POSIX says in the description of the trap command "Otherwise, the
   | argument action shall be read and executed by the shell when one of the
   | corresponding conditions arises." Because it says "when", not "after",
   | if interpreted literally, it does not even allow waiting until the
   | current command finishes executing.

You need to look at XCU 2.11 not just the description of the trap command
itself.

Ah, thanks, that makes an exception for when the shell is waiting for a command to complete. It's the same as what bash documents. In that case, I think we can interpret the "when" in the description of the trap command literally except when 2.11 overrides it.

Cheers,
Harald van Dijk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]