fix(core): simplify shell execution boundary (#39530)
This commit is contained in:
parent
247f14f955
commit
813c41ff6c
4 changed files with 12 additions and 62 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue