Skip to content

spawnWindows: Fix PATH searching when cwd is absolute #13994

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

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

squeek502
Copy link
Collaborator

Fixes a regression caused by #13983

From the added comment:

We still search the path if the cwd is absolute because of the "cwd set in ChildProcess is in effect when choosing the executable path to match posix semantics" behavior--we don't want to skip searching the PATH just because we were trying to set the cwd of the child process.

This is a straightforward bug fix. It will cause conflicts with #13993 but I'll resolve those once this is merged.

@squeek502 squeek502 changed the title spawnWindows: Fix PATH searching when cwd is absolute spawnWindows: Fix PATH searching when cwd is absolute Dec 18, 2022
Fixes a regression caused by ziglang#13983

From the added comment:

We still search the path if the cwd is absolute because of the
"cwd set in ChildProcess is in effect when choosing the executable path
to match posix semantics" behavior--we don't want to skip searching
the PATH just because we were trying to set the cwd of the child process.
@squeek502 squeek502 force-pushed the windows-spawn-cwd-search branch from 3e6d8a6 to 698ff98 Compare December 19, 2022 04:28
@andrewrk andrewrk enabled auto-merge (rebase) December 19, 2022 09:00
@andrewrk andrewrk merged commit 3db8cff into ziglang:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants