2013/7/9 Dan Douglas <orm...@gmail.com> > 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/html/bug-bash/2012-09/msg00006.html -- Geir Hauge