bug-bash
[Top][All Lists]
Advanced

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

Re: An xtrace variant


From: Chet Ramey
Subject: Re: An xtrace variant
Date: Thu, 2 Jul 2020 11:34:57 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 6/29/20 10:28 PM, Dale R. Worley wrote:
> Robert Elz <kre@munnari.OZ.AU> writes:
>> The NetBSD sh (this time alone I believe) also has a -X (not that part, I
>> think one or two other shells also have unrelated -X options) which acts
>> just like -X, except it locks the output to stderr as it is at the time
>> the -X option is enabled (until -X is unset).  [...]
> 
> I can see significant benefits to that.  At times, I've been thwarted in
> tracing things by redirection of stderr.

exec {BASH_XTRACEFD}>/tmp/trace-file
set -x


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]