another candidate , using xtracefd
it seems work perfect
just cant copypaste
greets
On Wed, Nov 8, 2023, 11:27 AM lacsaP Patatetom <patatetom@gmail.com> wrote:
> hi,
>
> is it possible to distinguish the lines displayed by bash's verbose mode by
> coloring them ?
>
> for example, with this little script, make the first and third displayed
> lines stand out by coloring them :
>
> bash -v <<~~~
> echo hello world
> seq 5
> ~~~
> echo hello world
> hello world
> seq 5
> 1
> 2
> 3
> 4
> 5
>
> I can color script comments by adding control characters (#\[1;34m colored
> comment\[0m) that are executed when a comment is displayed, but it's not
> very practical or aesthetic...
>
> regards, lacsaP.
>