Skip to content

Commit

Permalink
Don't escape launch config args that are only '<' and '>'. Fix #148887 (
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens authored May 11, 2022
1 parent 2bf6f8e commit c571737
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vs/workbench/contrib/debug/node/terminals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
const cmd = quote(args.shift()!);
command += (cmd[0] === '\'') ? `& ${cmd} ` : `${cmd} `;
for (const a of args) {
command += `${quote(a)} `;
command += (a === '<' || a === '>') ? a : quote(a);
command += ' ';
}
}
break;
Expand Down Expand Up @@ -145,7 +146,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
}
}
for (const a of args) {
command += `${quote(a)} `;
command += (a === '<' || a === '>') ? a : quote(a);
command += ' ';
}
if (env) {
command += '"';
Expand Down Expand Up @@ -179,7 +181,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
command += ' ';
}
for (const a of args) {
command += `${quote(a)} `;
command += (a === '<' || a === '>') ? a : quote(a);
command += ' ';
}
break;
}
Expand Down

0 comments on commit c571737

Please sign in to comment.