Closed graf0 closed 1 year ago
Nicely spotted - I think you're right:
$ bash -x -c 'echo foo' >/dev/null
+ echo foo
$ bash -x -c 'echo foo' 2>/dev/null
foo
Want to send a PR? cc @riacataquian
Want to send a PR? cc @riacataquian
Sure - you have it :)
Hello!
When you enable tracer via set -x, it breaks pipes.
how to reproduce?
install jq, then:
efect of this script should be:
is:
it could be even simpler without jq:
in test.txt there is following content:
where is problem?
in file interp/trace.go, line 28 I think we should set stderr as output stream. Otherwise printed traces become input of next command in the pipe.