On 6/6/16 12:50 AM, Dan Douglas wrote:
> On Sun, Jun 5, 2016 at 8:48 PM, Chet Ramey <chet.ra...@case.edu> wrote:
>> "Traced functions inherit the DEBUG  and  RETURN  traps  from  the  calling
>> shell."
> 
> Why did RETURN originally get sucked into set -T? Was it supposed to
> be primarily for debugging? 

Yes.  The RETURN trap was added to bash 14 years ago as part of the support
for the bash debugger.  The conditions under which it's inherited are the
same as DEBUG.

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