bug-bash
[Top][All Lists]
Advanced

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

Re: ERR trap reset in subshell by unrelated trap


From: Chet Ramey
Subject: Re: ERR trap reset in subshell by unrelated trap
Date: Fri, 19 Feb 2016 11:32:16 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 2/18/16 4:12 PM, Jan Klötzke wrote:

> This bug is still present in the latest version:
> 
> $ ./bash --version
> GNU bash, version 4.4.0(4)-beta (i686-pc-linux-gnu)
> 
> Fix:
> 
> The culprit seems to be free_trap_strings(). This function is invoked in
> a subshell to cleanup allocated strings. *But* it purges the shell
> special traps (DEBUG, ERR, RETURN) too, even though they were left in
> place by reset_or_restore_signal_handlers() if the right options were
> set.

Thanks for the report and the pointer to the place to fix.  This will
be fixed in the next release of bash (but not in bash-4.4-rc1, which is
already frozen for release).

Chet

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



reply via email to

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