Simon Kågström
Simon Kågström
Yes, I also noticed that it's unreliable. It works fine in my Fedora installation, but not under Ubuntu 14.04, and I suspect some memory overwrite or similar. I'm working on...
I've pushed a fix to Issue #51 that seems to work better on my Ubuntu computer at least.
OK, too bad. I can't reproduce this with your scripts. Just to check: Did this work with earlier kcovs (i.e., before the issue #51 fix)?
OK, so the arguments are not propagated to argv via the preloaded library. Even the first commit (which uses a stack-allocated argv) worked fine in my Fedora 21 installation, but...
I added a --bash-handle-sh-invocation option to optionally turn on the LD_PRELOAD hack, but for now it's default off.
Hmm... can't reproduce this. For me, it works both with and without `--bash-handle-sh-invocation`. Are you running as root?
Does it work if you run as non-root? Later kcovs scan the script directory for other scripts, and adds them to the report, which is what you see here. The...
Hmm... What version of bash are you using? Your script examples work for me, so I guess it's something in the environment that differs. On Sun, Feb 10, 2019, 04:24...
I'm on Ubuntu 16.04, so `GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)`. Newer bashes have some security fix which causes problems when running as root (with a possible workaround with `--bash-method=DEBUG`), but...
Cool! Feel free to submit a pull request, although I can't quite see *why* it would make a difference.