[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turning on file+line for functions with shopt -s extdebug gives erro
From: |
Chet Ramey |
Subject: |
Re: turning on file+line for functions with shopt -s extdebug gives error |
Date: |
Wed, 27 Feb 2019 10:13:06 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
On 2/26/19 7:26 PM, L A Walsh wrote:
>>> Nor do I see where function-tracing and error tracing are defined.
>>>
>>
>> set -o functrace/set -T
>> set -o errtrace/set -E
>>
> --
>>
>>> Are they defined "somewhere"? Maybe a short note as to what they
>>> are might be added to the manpage where the terms are used (under
>>> description of shopt+extdebug)?
The existing text describes the behavior pretty well:
5. Function tracing is enabled: command substitu-
tion, shell functions, and subshells invoked with
( command ) inherit the DEBUG and RETURN traps.
6. Error tracing is enabled: command substitution,
shell functions, and subshells invoked with (
command ) inherit the ERR trap.
To be clear, you're suggesting that I add something to the `extdebug'
section to explain how these features can be enabled separately from
`extdebug'?
--
``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/