Comment by Schlagbohrer

3 hours ago

I recently installed Powershell 7 because apparently that is different than the powershell that comes with windows. It's great, but, now I have at least 3 different Powershells in my OS? Why? And they function very differently. I had to change all the defaults for opening a new terminal or new shell window in Windows because many of the defaults kept giving me one of the old powershells which I wouldnt figure out until my commands and scripts kept giving errors, since they use commands which only exist in Powershell 7. Cannot believe Microsoft decided to copy Python's original sin and create several conflicting, coexisting installations of the exact same thing, but different incompatible versions. Whyyyyyyyy

Regarding the article: Corbin Davenport is an amazing name. Nice article too.

>3 versions NOO! Maybe there is one 5.x? You should get rid of these. Version 1.0/2.0 is called 'WindowsPowershell' (powershell.exe), it's usually in your System32 for compatibility reason. 'PowerShell7' (pwsh.exe) is the modern one. It Imports most Modules/Scripts from the former, except for 3 Modules or so which are incompatible.

PS> Get-Help -Name 'InsertName' -Full Shows the Help, can be Imported/Created via XML 4 New Modules PS> Update-Help -UICulture en-US Fetches & Installs Help Files in English

Hope that helps!

> It's great, but, now I have at least 3 different Powershells in my OS? Why?

Have you never used a Linux distro? I always end up with two windows managers, two login managers, 2-3 shells, 2-3 package managers and what not.

  • I want to see your 2-3 package managers :-) Unless you count apt, aptitude, apt-get etc separately.

    One saving grace with Linux distros is that usually the maintainers package versions that are compatible with each other. So if you stay with the default repos things work.

    But yeah once you install newer versions from non-distro repos it might be fine (e.g. git) or things will break in subtle ways.

  • This 30+ year linux user says you never have 2 or 3 different incompatible bash's.

    You can have multiple different sh's, but you have to go out of your way to force them to be used. And evenn if you did, dash and ash and older versions of bash and sysv sh are a strict totally compatible subset of latest bash, and none ever has the problem of incompatible or missing modules or plugin library. Old scripts work in new bash.

    The python to powershell comparison was valid. This false equivalence was not.

    The fact that you can have 2 window managers is like having 2 mp3 players. It's not the critique at all.