bug-bash
[Top][All Lists]
Advanced

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

Re: bash does not run exit traps if the last command is a kill builtin t


From: Chet Ramey
Subject: Re: bash does not run exit traps if the last command is a kill builtin that kills bash (`kill "$$"')
Date: Sat, 30 Apr 2022 11:37:17 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 4/29/22 12:58 PM, Emanuele Torre wrote:

Bash Version: 5.1
Patch Level: 16
Release Status: release

Description:
         Bash does not run `EXIT' traps if the last command is the kill
        builtin kills that kills the shell.

Thanks for the report. This only affects -c command execution with the
fatal signal received during or after the last command. We need to check
for terminating signals before starting the shell exit process.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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