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

Handle the edge case where there's a single quote but no space
This commit is contained in:
Daniel Imms 2019-01-10 15:04:22 -08:00 committed by GitHub
commit 3ddc4dc5ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}