HB_...@aapt.net.au
unread,Jan 26, 2016, 8:31:05 PM1/26/16You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Using the POSIX shell (HP-UX), the trace directives set [-+]x and typeset [-+]ft interact as follows (regardless of whether shell functions are defined with the "function name" or "name()" forms):
set -x:
- typeset -ft
Caller and named function(s) traced
- typeset +ft
Caller but trace from named function(s) suppressed
set +x:
- typeset -ft
Only named function(s) traced
- typeset +ft
No trace at all
So function trace is governed independently of the calling script/session trace, which can be useful in controlling the amount of trace so generated.
Now under bash 4.1.2 (RHEL 2.6.32) (and 4.3.27 HP-UX 11.31), I get this:
set -x:
Caller and all functions traced, irrespective of typeset [-+]ft
set -x:
No trace at all, irrespective of trace -ft
While I've found plenty of stuff showing how to use typeset -ft to generate trace, I haven't found anything going the other way, i.e. actually limiting the amount of function-level trace.
Any insights on this one ?
Thanks.