Merge pull request #236514 from microsoft/tyriar/219583
Speculative fix when pwsh is 'powershell' on mac/linuxpull/236441/head
commit
ebe010b7aa
|
@ -129,7 +129,7 @@ async function doResolveUnixShellEnv(logService: ILogService, token: Cancellatio
|
|||
const name = basename(systemShellUnix);
|
||||
let command: string, shellArgs: Array<string>;
|
||||
const extraArgs = '';
|
||||
if (/^pwsh(-preview)?$/.test(name)) {
|
||||
if (/^(?:pwsh(?:-preview)|powershell)$/.test(name)) {
|
||||
// Older versions of PowerShell removes double quotes sometimes so we use "double single quotes" which is how
|
||||
// you escape single quotes inside of a single quoted string.
|
||||
command = `& '${process.execPath}' ${extraArgs} -p '''${mark}'' + JSON.stringify(process.env) + ''${mark}'''`;
|
||||
|
|
Loading…
Reference in New Issue