-
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
search command in PATH instead of relying on execvpe() #209
Conversation
You can probably see that I'm a Rust beginner, so maybe there is a better way to implement this. I would tend to think that the use of CStrs should really be confined to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added few comments, thanks!
As execvpe() is not available on macOS, implement the PATH search in Rust so that things work on both platforms
I believe I have addressed your concerns. Thank you for your reviews! |
Looks much better with |
Hi @FedericoPonzi, I'm somewhat confused with the test failure: It seems that the test that is failing is from a previous version but running against the branch version of Horust. This causes a mismatch in parameter count for Thank you! |
Sorry for the delay as I was AFK other the weekend till today. I'm taking a look at it right now, but I cannot understand what's going on either. It looks like to me that line 92 is fine: Horust/tests/section_general.rs Line 92 in 59f2b6b
I will merge it and deal with break on master separately. Thanks! |
Thank you! |
Motivation and Context
execvpe() is not available on macOS
Description
As execvpe() is not available on macOS, implement the PATH search in Rust so that things work on both platforms
How Has This Been Tested?
All tests pass
Types of changes
Checklist: