Skip to content

Commit b288546

Browse files
authored
Escape '?' in debug terminal (microsoft#204378)
Fix microsoft#204302
1 parent 3843819 commit b288546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/node/terminals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export function prepareCommand(shell: string, args: string[], argsCanBeInterpret
161161
case ShellType.bash: {
162162

163163
quote = (s: string) => {
164-
s = s.replace(/(["'\\\$!><#()\[\]*&^| ;{}`])/g, '\\$1');
164+
s = s.replace(/(["'\\\$!><#()\[\]*&^| ;{}?`])/g, '\\$1');
165165
return s.length === 0 ? `""` : s;
166166
};
167167

0 commit comments

Comments
 (0)