# spawnWindows: Fix PATH searching when cwd is absolute · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3db8cffa3b383011471f425983a7e98ad8a46aa5)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3db8cffa3b383011471f425983a7e98ad8a46aa5

Requested commit: 3db8cffa3b383011471f425983a7e98ad8a46aa5

Commit: 3db8cffa3b383011471f425983a7e98ad8a46aa5

Tree: ca5e55fe37d770c3774112f01bdb04448abdfcd6

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
spawnWindows: Fix PATH searching when cwd is absolute

Fixes a regression caused by https://github.com/ziglang/zig/pull/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.

```

## Parents

- [3bfae2a0d9503dbd832774c3b39a74dbd55e8b6e](https://git.cafe/gitcafe/zig/commit/3bfae2a0d9503dbd832774c3b39a74dbd55e8b6e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3db8cffa3b383011471f425983a7e98ad8a46aa5?format=markdown)
