[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: Enabling or disabling tracing shell functions
From: |
Chet Ramey |
Subject: |
Re: RFC: Enabling or disabling tracing shell functions |
Date: |
Tue, 7 Jun 2016 19:37:21 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
On 6/6/16 12:50 AM, Dan Douglas wrote:
> On Sun, Jun 5, 2016 at 8:48 PM, Chet Ramey <chet.ramey@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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/