fix(core): simplify shell execution boundary (#39530)

This commit is contained in:
Aiden Cline 2026-07-29 11:16:45 -05:00 committed by GitHub
commit 813c41ff6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 62 deletions

View file

@ -59,6 +59,13 @@ describe("shell", () => {
expect(ShellSelect.args("/usr/bin/fish", "echo hi")).toEqual(["-c", "echo hi"])
expect(ShellSelect.args("/bin/zsh", "echo hi")).toEqual(["-c", "echo hi"])
expect(ShellSelect.args("/bin/bash", "echo hi")).toEqual(["-c", "echo hi"])
expect(ShellSelect.args("pwsh", "Write-Output hi")).toEqual([
"-NoLogo",
"-NoProfile",
"-NonInteractive",
"-Command",
"Write-Output hi",
])
})
if (process.platform === "win32") {