Hacker News new | ask | show | jobs
by oefrha 2262 days ago
I think PowerShell doesn’t really compete with Bash, it competes with Python, Perl or the like. And I haven’t found it to be superior in that aspect other than at integration with Windows system stuff.
2 comments

PowerShell should raise the bar for lowest common denominator of scripting on Windows systems. I've dabbled a bit it, but I was disappointed it was so tightly coupled (possibly by necessity?) with the .NET runtime version. This makes it much more difficult to update on old systems. I had to write PowerShell in the oldest compatible version. It's almost like dealing with JavaScript implementations of all versions if IE. Other scripting langues like Python provides user-space virtual environments with forward/backward compatibility. Does PowerShell have a universally available package manager (ie. Windows Update)? I don't spend much time in the Windows world. But, the friction of using PowerShell was higher than my tolerance.
> Does PowerShell have a universally available package manager

It does, called OneGet and recently rewritten.

You can also use chocolatey.

For windows update: https://www.powershellgallery.com/packages/PSWindowsUpdate/2...

PowerShell Core should solve that problem, as you can ship it with its own .NET Core runtime.
No it doesn't. It is "shell language" designed for shell usage, not general purpose language, like Python.