未验证 提交 3ddc4dc5 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #66359 from TylerLeonhardt/single-quote-edgecase

Handle the edge case where there's a single quote but no space
......@@ -801,7 +801,7 @@ export class TerminalInstance implements ITerminalInstance {
pathBasename === 'powershell' ||
this.title === 'powershell';
if (hasSpace && isPowerShell) {
if (isPowerShell && (hasSpace || originalPath.indexOf('\'') !== -1)) {
c(`& '${originalPath.replace('\'', '\'\'')}'`);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册