u can just try the BASH_XTRACEFD=3 line w/o else ... and where u need set -xv output u capture the fd 3 or u can set -xv to 2 but apps to stderr use 3
On Sun, Nov 3, 2024, 13:45 Christoph Zimmermann <monochro...@gmail.com> wrote: > Thanks for all the quick reactions on that issue (including microsuxx's > suggestion which > unfortunately does require a CB change). > > If this is intended behaviour, it should be clearly documented on the > corresponding man > page (which doesn't seem to be case ATM). > > On 02.11.24 19:57, Chet Ramey wrote: > > On 11/2/24 1:41 PM, monochro...@linuxinlaws.eu wrote: > > > >> Bash Version: 5.2 > >> Patch Level: 37 > >> Release Status: release > >> > >> Description: > >> Redirecting stderr to file causes output of bash -xv to be > writte to file as well > > > > That's where the shell writes -v and -x output. > > > > -- > This email account is monitored seven days a week. > >