Skip to content

Commit ba9dc7d

Browse files
committed
Add option to child_process.spawn to handle spaces in argumetns
1 parent 73572ac commit ba9dc7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/PesterTask/src/pester.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function run() {
9292
logInfo(`${executable} ${args.join(" ")}`);
9393

9494
var spawn = require("child_process").spawn, child;
95-
child = spawn(executable, args);
95+
child = spawn(executable, args, {windowsVerbatimArguments: true});
9696
child.stdout.on("data", function (data) {
9797
logInfo(data.toString());
9898
});

Extension/PesterTask/src/pesterv10.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function run() {
9292
logInfo(`${executable} ${args.join(" ")}`);
9393

9494
var spawn = require("child_process").spawn, child;
95-
child = spawn(executable, args);
95+
child = spawn(executable, args, {windowsVerbatimArguments: true});
9696
child.stdout.on("data", function (data) {
9797
logInfo(data.toString());
9898
});

0 commit comments

Comments
 (0)