# ChildProcess.spawnWindows: Fix PATH search when the ext is in the command · gitcafe/zig

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

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

Visibility: public

Requested revision: 6a1021fb7d14604b4f66b2c992f47eadcc812989

Requested commit: 6a1021fb7d14604b4f66b2c992f47eadcc812989

Commit: 6a1021fb7d14604b4f66b2c992f47eadcc812989

Tree: cbfe12e21ee6c510365eaa42e2cfe716c0091651

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

````
ChildProcess.spawnWindows: Fix PATH search when the ext is in the command

For example, if the command is specified as `something.exe`, the retry will now try:

```
C:\some\path\something.exe
C:\some\path\something.exe.COM
C:\some\path\something.exe.EXE
C:\some\path\something.exe.BAT
... etc ...
```

whereas before it would only try the versions with an added extension from `PATHEXT`, which would cause the retry to fail on things that it should find.

````

## Parents

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

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