On Monday, July 08, 2013 02:39:52 PM Linda Walsh wrote:
>
> Greg Wooledge wrote:
>
> > normal=$(tput sgr0) red=$(tput setaf 1) green=$(tput setaf 2) ...
> ---
>
> BTW If you ever trace your code with "-x", tracing through
> the above will change your terminal text color.
>
> You can get around
2013/7/9 Dan Douglas
> Can also give all the debug output %q formatting.
>
> exec {BASH_XTRACEFD}> >(set +x; while IFS= read -r x; do printf %q\\n
> "$x"; done)
Note that {BASH_XTRACEFD}>... won't work in bash 4.2 (or older). It's fixed
for the next release though.
http://lists.gnu.org/archive