Skip to content

spawnWindows: Fix PATH searching when cwd is absolute - #13994

Merged
andrewrk merged 1 commit into
ziglang:masterfrom
squeek502:windows-spawn-cwd-search
Dec 19, 2022
Merged

spawnWindows: Fix PATH searching when cwd is absolute#13994
andrewrk merged 1 commit into
ziglang:masterfrom
squeek502:windows-spawn-cwd-search

Conversation

@squeek502

Copy link
Copy Markdown
Member

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.

@squeek502squeek502 changed the title spawnWindows: Fix PATH searching when cwd is absolutespawnWindows: Fix PATH searching when cwd is absoluteDec 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
squeek502force-pushed the windows-spawn-cwd-search branch from 3e6d8a6 to 698ff98CompareDecember 19, 2022 04:28
@andrewrk
andrewrk enabled auto-merge (rebase) December 19, 2022 09:00
@andrewrk
andrewrk merged commit 3db8cff into ziglang:masterDec 19, 2022
Sign up for freeto 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

@squeek502@andrewrk