We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5ebdf commit 1fa79baCopy full SHA for 1fa79ba
src/integrations/terminal/__tests__/streamUtils/pwshStream.ts
@@ -23,7 +23,8 @@ export function createPowerShellStream(command: string): CommandStream {
23
} else {
24
// On Windows/macOS, use double quotes and escape inner double quotes
25
// This is the original approach that works on Windows
26
- shellCommand = `pwsh -NoProfile -NonInteractive -Command "${command.replace(/"/g, '\\"')}"`
+ const escapedCommand = command.replace(/\\/g, "\\\\").replace(/"/g, '\\"')
27
+ shellCommand = `pwsh -NoProfile -NonInteractive -Command "${escapedCommand}"`
28
}
29
30
console.log(`Executing PowerShell command on ${process.platform}: ${shellCommand}`)
0 commit comments