[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More convenient tracing
From: |
Dale R. Worley |
Subject: |
Re: More convenient tracing |
Date: |
Thu, 26 Jan 2023 12:03:08 -0500 |
Greg Wooledge <greg@wooledge.org> writes:
> On Wed, Jan 25, 2023 at 03:00:27PM -0500, Dale R. Worley wrote:
>>
>> Tracing with -x prints a lot of (usually) useless lines.
>>
>> $ bash -x ./tt
>> [300+ lines of Bash initializations]
>> + echo 'Now in tt.'
>> Now in tt.
>
> Why does it do this? Have you got BASH_ENV set to something in your
> environment?
I do have BASH_ENV set, to ~/.bashrc. I need that so that my scripts
can use my .bashrc customizations. Though I do know that I haven't
gotten the Bash startup scripts set correctly for the effects I want;
fixing that would cut most but by no means all of the "Bash
initializations" listed above.
Dale