Does anyone know if we can say set +x in bash without it being printed:
set +x
set -x command set +x
traces
+ command
I had the same problem, and I was able to find a solution that doesn't use a subshell:
set -x command { set +x; } 2>/dev/null