-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POSIX sh support? #24
Comments
Great question! Bashcov relies on the
So Are you using a *BSD variant and does it support |
As expected, it fails badly without It'd be interesting to compile Dash with |
@infertux --
Happy to take a crack at updating |
That's great news. Thanks a lot @BaxterStockman.
I see
I wonder if Bash runs in "pseudo" POSIX-compliant mode when called that way. The man page says you can pass I should have some time to work on this next week but please feel free to take a crack at it! That would be most welcomed :) |
So it looks like it will be difficult to support POSIX shells in all but the most basic scenario of generating coverage stats for a single script. As far as I have been able to determine, One possiblity is to provide "shim" scripts -- something like |
Same result for me. Bummer.
Great idea but yeah I'm afraid most sh scripts out there use PS: Thanks again for your help @BaxterStockman :) |
Ping @WillemMali |
Sorry for not responding, I guess I missed the email. Yes, that would be helpful. I could then wrap
... I'm not sure if I'm spending too much or too little of my time writing shell scripts. |
Holy moly, TIL that kcov is using some |
Nice find! Though I feel like overriding |
Hi, I'm looking for a tool to test a rather large sh script (it's around a 1000 lines atm). I have one main script for which I want to generate coverage (preferably also for the large command strings that are passed to
xargs
to get aroundread
not supporting\0
-separation in most implementations), but I also have a collection of test scripts also written insh
.Does bashcov have support for pure
sh
scripts? Would you recommend I use bashcov for this?The text was updated successfully, but these errors were encountered: