bug-bash
[Top][All Lists]
Advanced

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

Stdout from arg group of Debug trap redefines PS4


From: Wiley Young
Subject: Stdout from arg group of Debug trap redefines PS4
Date: Sun, 25 Jun 2023 18:58:22 -0700

Hi,

[liveuser@localhost-live scf]$ reset; ./findscan rm_stale foo bar -ab /tmp
|& cat -n

Beginning at line 217 of `cat`s numbering of this xtrace output log, the
read prompt from the Debug trap prints some info for a few lines, and then
one line before #218, the PS4 prompt is displayed again, if the
highlighting patterns are to be believed.

PS4 prior read as...

   214 + At:[ 4]gardning( 361) In:<_dbg_pmt> Fr:[ 3]gardning( 382)  > set -x

At line (( 218 - 1 )) PS4 reads as...

+ At:[DEBUG trap 30013
   218  ( -3 ):./findscan:0:main  ( -2 ):./findscan:128:source  ( -1
):./gardning.bash:444:_xtrace_  ( -0 ):./gardning.bash:382:_fun_trc  ( +1
):./gardning.bash:46:_fun_trc:62
   219  _dbg_pmt
   220  ( -4 ):./findscan:0:main  ( -3 ):./findscan:128:source  ( -2
):./gardning.bash:444:_xtrace_  ( -1 ):./gardning.bash:382:_dbg_pmt  ( -0
):./gardning.bash:351:_fun_trc  ( +1 ):./gardning.bash:46:_fun_trc:62
   221  6a7

The string 'DEBUG trap 30013' is the stdout of a command on line 382 of
gardning.bash:

  167 + At:[ 3]gardning( 382) In:<_xtrace_> Fr:[ 2]gardning( 444)  > echo
DEBUG trap 30013
   168 DEBUG trap 30013

Line "218" of the second PS4 value is a function trace printed above at
line 172:

   169 + At:[ 3]gardning( 382) In:<_xtrace_> Fr:[ 2]gardning( 444)  >
_fun_trc
...
   173 ( -3 ):./findscan:0:main  ( -2 ):./findscan:128:source  ( -1
):./gardning.bash:444:_xtrace_  ( -0 ):./gardning.bash:382:_fun_trc  ( +1
):./gardning.bash:46:_fun_trc:62

The strings from lines "219" and "220" are shown in the xtrace log at lines
179 and 184, respectively.

After line 221, xtrace seems to become somehow disabled, and a series of
environment diffs are printed through the rest of the file.

I am shocked, shocked to find that there is drinking going on in this
establishment!

Cheers,
Wiley

scripts and xtrace files attached

:-/  Thank you!!!

Attachment: out.txt
Description: Text document

Attachment: out.html
Description: Text document

Attachment: gardning.bash
Description: Binary data

Attachment: findscan
Description: Binary data


reply via email to

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