-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Yes I know it's a bit strange, but there's a good reason for a line like that: When run in debug mode, my script will output the command, args, and heredoc input to stdout, instead of running the command. The user can then copy/paste the command to run it independently.
However, when kcov processes my script it stops at the line in the title.
This can be duplicated with the following toy shell script:
#!/bin/bash
echo "Yes"
if true; then
echo 1
fi
echo "<< EOF"
echo "What about this line?"
echo "Nope"
The last two lines will run and output when executing the shell script, when run inside of kcov or outside. However, the kcov results will not show the last two lines as green or red.
When I comment out the line it works just fine.
I assume something in kcov is detecting heredocs and ignoring them, but that detection is overzealous and the line results in a false positive.
