Skip to content
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

Fix mangling of PATH during cygvoke #5293

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Fix mangling of PATH during cygvoke #5293

merged 1 commit into from
Sep 21, 2022

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Sep 21, 2022

When calling Cygwin binaries, the process invocation manipulates PATH to ensure that Cygwin's bin directory appears before the Windows system32 directory to ensure that Cygwin binaries don't unexpectedly start using Window's BSD executables (a normal Cygwin shell avoids this by forcibly putting /usr/bin at the beginning of PATH).

Unfortunately, I made a slight mistake with the first entry - it's an environment block string, so the first entry is PATH=<dir> and the PATH= part wasn't split off.

This PR corrects that; therapy will deal with the fact that I discovered this quite old bug the night before a demo...

PATH is manipulated as part of the call to execve when invoking Cygwin
binaries, but the function didn't parse the first element of PATH
correctly.
@dra27 dra27 added this to the 2.2.0~alpha milestone Sep 21, 2022
@dra27 dra27 added this to PR in progress in Opam 2.2.0 via automation Sep 21, 2022
@rjbou rjbou merged commit c986bf1 into ocaml:master Sep 21, 2022
Opam 2.2.0 automation moved this from PR in progress to Done Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants