fix(exec): recognize PowerShell encoded commands

This commit is contained in:
Peter Steinberger
2026-03-07 23:15:37 +00:00
parent 5b27b0cecf
commit 1d1757b16f
4 changed files with 26 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
export const POSIX_INLINE_COMMAND_FLAGS = new Set(["-lc", "-c", "--command"]);
export const POWERSHELL_INLINE_COMMAND_FLAGS = new Set(["-c", "-command", "--command"]);
export const POWERSHELL_INLINE_COMMAND_FLAGS = new Set([
"-c",
"-command",
"--command",
"-encodedcommand",
"-enc",
"-e",
]);
export function resolveInlineCommandMatch(
argv: string[],