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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to