Open phil-hands opened 1 year ago
Can you retry it with the latest from git? I tested your script with my build, and it doesn't seem to happen there (on OSX though).
v38 is a few years old, so although I don't know of any specific fix of this, there are many changes since then.
Here is a demonstration of running a shell script under kcov, which makes the output go missing:
That was on a Debian GNU/Linux 13 (aka "bookworm" or testing) system, with the packaged version of kcov (ver: 38+dfsg-1).
As you can see, if one redirects STDOUT in the script to FD 8 (chosen at random) and then redirect that back to STDOUT outside kcov, things work as expected. I presume this is unexpected.
I've had a glance at the Debian specific patches, and I don't see how they would produce this effect, so I suspect that it exists upstream, which is why I'm reporting this here.