I know that I can redirect the xtrace output to some_file with something like this:exec 2 >> some_fileset +x...but this sends to some_file not only the xtrace output, but also any other content originally sent to fd 2, which includes most error messages and warnings, all unrelated to xtrace.Is there a way to capture only the xtrace output in some_file?I should add that I'm looking for a way to do this that would distort as little as possible the xtrace output itself, and the timing information gathered through a PS4 setting like, e.g.zmodload zsh/datetimeexport PS4='${(j::)epochtime} %N:%i> '
How to capture the xtrace output (only) in a file?
zsh;performance;audit;tracing