You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a new usePowerShell helper for Windows PowerShell v5 in zx.
But Microsoft is no longer updating Windows PowerShell with new features since 2016 (source).
But do we need a separate method? We can check pwsh bin first and if not found then fallback to powershell.exe.
Though there is a backwards compatibility mode, pwsh is not fully compatible with powershell.exe. Actually, that is also the reason why Microsoft renamed it to pwsh to have a simple deterministic way to run a specific version.
So I'm not sure it would be expected for users to run pwsh as powershell even it is available.
There is a new
usePowerShell
helper forWindows PowerShell v5
inzx
.But Microsoft is no longer updating Windows PowerShell with new features since 2016 (source).
Now there is new
PowerShell v7
: cross-platform, open-source.See also: Differences between Windows PowerShell 5.1 and PowerShell 7.x / PowerShell executable changes.
The only difference with
usePowerShell
is that it should usepwsh
as executable instead ofpowershell.exe
.What about adding
usePwsh
helper similar tousePowerShell
? If it's fine, I have a PR ready.The text was updated successfully, but these errors were encountered: