On 7/29/12 12:55 PM, Chet Ramey wrote:
> On 7/28/12 12:38 PM, Maarten Billemont wrote:
>> Trapping on EXIT is a really convenient way of cleaning up after yourself 
>> when your script ends.
> 
> I agree that the EXIT trap should work on {} asynchronous subshells, and I
> will make sure that the next version of bash does this.
> 
> However, the two examples you gave don't really differ in that respect.  If
> you take out the `kill', neither interactive nor non-interactive shells run
> the exit trap.  The difference is how interactive and non-interactive
> shells handle SIGTERM.  That's the place I'll have to look.

It's a problem with interactive shells wanting to reinitialize handling of
terminating signals in subshells.  It will be fixed in the next 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