I am running a bash script to run a few tests on a program that I've made. When running the tests I wanted to be able to see the commands printed in the terminal. For this I used -x at the start.
It's all fine, but in the commands that use a '<', the operator is not shown, nor the word right after it. I would like it to show the entire command.
Also it'd be nice to not show 'echo -e \n'. I've tried with set +x and set-x but I always end up showing 'set +x' or 'set -x' or both.
#!/bin/bash -x
cat entrada3.txt
./tp0 < entrada3.txt
./tp0 -p compress < entrada3.txt -o salida3.txt
Expected result:
+ cat entrada3.txt
AAAAAAAAAA
+ ./tp0 < entrada3.txt
65,256,257,258,10
+ ./tp0 -p compress < entrada3.txt -o salida3.txt
Actual result:
+ cat entrada3.txt
AAAAAAAAAA
+ ./tp0
65,256,257,258,10
+ ./tp0 -p compress -o salida3.txt