Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed report—the diagnosis is correct. I opened #1221 with a fix.

The change resolves structured-argv executables using the effective Windows PATH and PATHEXT. Real .exe/.com programs remain on the direct execution path, while resolved .cmd/.bat shims run through cmd.exe with npm-shim-aware escaping so argument boundaries are preserved.

I also added a Windows regression test using a node_modules/.bin/*.cmd shim and arguments containing spaces, &, %...%, *, and ^. The Windows build and Pester suite are passing on the PR.

AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable.

Replies: 1 comment

Comment options

jdx
Aug 23, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by lumirelle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants