Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

fix switches for alternative shells on Windows#26

Closed
gucong3000 wants to merge 2 commits intonpm:latestfrom
gucong3000:patch-2
Closed

fix switches for alternative shells on Windows#26
gucong3000 wants to merge 2 commits intonpm:latestfrom
gucong3000:patch-2

Conversation

@gucong3000
Copy link
Contributor

On Windows, normalizeSpawnArguments set "/d /s /c" for any shells.
It cause exec and other methods are limited to cmd.exe as a shell.

Powershell and git-bash are often used instead of cmd.exe,
and they can recieve "-c" switch like unix shells.
So normalizeSpawnArguments is changed to set "/d /s /c" for cmd.exe,
and "-c" for others.

On Windows, normalizeSpawnArguments set "/d /s /c" for any shells.
It cause exec and other methods are limited to cmd.exe as a shell.

Powershell and git-bash are often used instead of cmd.exe,
and they can recieve "-c" switch like unix shells.
So normalizeSpawnArguments is changed to set "/d /s /c" for cmd.exe,
and "-c" for others.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant