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:
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
|
||||
|
||||
Reference in new issue
Block a user