Skip to content

Commit

Permalink
Update packages/cli-test/src/cli/shell.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Brooks <[email protected]>
  • Loading branch information
Fil Maj and mwbrooks authored Nov 2, 2024
1 parent 3235029 commit 4f41569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-test/src/cli/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function getSpawnArguments(
if (process.platform === 'win32') {
// In windows, we actually spawn a command prompt and tell it to invoke the CLI command.
// The combination of windows and node's child_process spawning is complicated: on windows, child_process strips quotes from arguments. This makes passing JSON difficult.
// As a workaround, by telling Windows Command Prompt (cmd.exe) to execute a command to completion (/c) and leave spaces intact (/c), combined with feeding arguments as an argument array into child_process, we can get around this mess.
// As a workaround, by telling Windows Command Prompt (cmd.exe) to execute a command to completion (/c) and leave spaces intact (/s), combined with feeding arguments as an argument array into child_process, we can get around this mess.
const windowsArgs = ['/s', '/c'].concat([command]).concat(args);
return [
'cmd',
Expand Down

0 comments on commit 4f41569

Please sign in to comment.