bug-bash
[Top][All Lists]
Advanced

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

Re: EXIT trap is not executed after an exec failure in a non-interactive


From: Chet Ramey
Subject: Re: EXIT trap is not executed after an exec failure in a non-interactive shell
Date: Fri, 8 Oct 2021 11:01:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.1.2

On 10/1/21 2:16 PM, Mark March wrote:
Ok, thank you for clarifying. There is nothing in the documentation about this 
behavior as far as I can tell. I would suggest adding a line about traps 
getting reset after a failed exec to the paragraph on 'execfail'.

I think it will be a cleaner fix, and more intuitive, to make sure the
traps are preserved across a failed `exec'. I'll look at changing that
behavior.

Chet

--
``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]