I would like a trace for each command after it expands the command and before it executes it, just like what set -x does, but I do not want it to be printed do stderr.
I know I could redirect stderr to stdout, like exec 2>&1, but that will redirect all of stderr (and exec would be printed to stderr). I still want actual error messages to be printed to stderr, so redirecting everything is not what I want.