bug-bash
[Top][All Lists]
Advanced

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

Re: trap RETURN not set in calling function is overwritten by callee


From: Chet Ramey
Subject: Re: trap RETURN not set in calling function is overwritten by callee
Date: Fri, 21 Aug 2015 08:34:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

On 8/19/15 2:48 AM, jtmoon+bashbug@extrahop.com wrote:

> Fix:
>       For some reason the RETURN traps are not being stacked.  Instead, the
>       current RETURN trap is just overwritten.

There is only a single RETURN trap.  Functions do not have local traps.  If
a return trap is set when a function returns, it will be executed.  Nor are
there local functions; all functions are at the global scope.

Function tracing mode (for the debugger) changes this somewhat, but you're
not using it.
-- 
``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]