We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3f829 commit b3240deCopy full SHA for b3240de
src/features/terminal/shells/pwsh/pwshStartup.ts
@@ -65,7 +65,7 @@ async function isPowerShellInstalled(shell: string): Promise<boolean> {
65
*/
66
async function getPowerShellVersion(shell: 'powershell' | 'pwsh'): Promise<string | undefined> {
67
try {
68
- const command = `${shell} -Command "\$PSVersionTable.PSVersion.Major"`;
+ const command = `${shell} -c '\$PSVersionTable.PSVersion.Major'`;
69
const versionOutput = await runCommand(command);
70
if (versionOutput && !isNaN(Number(versionOutput))) {
71
return versionOutput;
0 commit comments