fix(ghidra): preserve Windows batch invocation semantics

This commit is contained in:
N0zoM1z0
2026-07-17 03:05:19 +09:00
committed by N0zoM1z0
parent 585f523891
commit 0ac418dd8b
33 changed files with 113 additions and 95 deletions
+3
View File
@@ -17,6 +17,8 @@ export interface OwnedProviderProcessSpawnOptions {
readonly runId: string;
/** Null disables argv-prefix matching for interpreter-driven launch scripts. */
readonly expectedCommand?: string | null;
/** Preserve a pre-quoted Windows command-interpreter invocation exactly. */
readonly windowsVerbatimArguments?: boolean;
readonly cwd?: string;
readonly env?: NodeJS.ProcessEnv;
}
@@ -108,6 +110,7 @@ export const spawnOwnedProviderProcess = async (
windowsHide: true,
stdio: ["ignore", "pipe", "pipe"],
detached: process.platform !== "win32",
windowsVerbatimArguments: options.windowsVerbatimArguments ?? false,
env: {
...process.env,
...options.env,