fix(terminal): simplify cmd.exe command arguments (#7695)

Remove /s flag and extra quoting from cmd.exe shell arguments.
The previous approach with /s /c and quoted command was causing
issues with proper command execution in Windows cmd.exe.
This commit is contained in:
Ara authored and GitHub committed 2025-11-26 11:05:10 -08:00
1 parent 550428eabd
commit 515cb81439
1 file changed
+1 -2
@@ -200,8 +200,7 @@ class StandaloneTerminalProcess extends EventEmitter {
if (shell.toLowerCase().includes("powershell") || shell.toLowerCase().includes("pwsh")) {
return ["-Command", command]
} else {
// Use /s /c with quoted command for proper quote handling in cmd.exe
return ["/s", "/c", `"${command}"`]
return ["/c", command]
}
} else {
// Use -l for login shell, -c for command