Is there a way to send the information displayed by running a bash script with the -x option to a file, while not changing the standard output seen by a user running the script?
This is a debugging feature I would like to implement in a bash script we use that changes frequently.
Much appreciated.