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

@ -173,7 +173,7 @@ export function args(file: string, command: string) {
if (n === "nu" || n === "fish") return ["-c", command]
if (n === "zsh" || n === "bash") return ["-c", command]
if (n === "cmd") return ["/c", command]
if (ps(file)) return ["-NoProfile", "-Command", command]
if (ps(file)) return ["-NoLogo", "-NoProfile", "-NonInteractive", "-Command", command]
return ["-c", command]
}