How come there are so many alternatives for linux but none for Windows?
Nothing against PowerShell, I'm just curious.
I'll suffix with my opinion that PowerShell is much nicer than many POSIX shells, especially given its hybrid object-oriented + functional pipeline paradigm.
This is really the reason there are no shells for windows. There wasn't anything for the shell to do! No massive collection of small executables linux *nix that were shell oriented. No system design around CLI management.
Around Windows 2016 or so I would say this changed with Powershell and with a number of design changes by Microsoft that allowed much better remote management (and not fully depending on GPO to do it), and I even run into some customers that have headless windows servers these days.
Very convenient on my work laptop where I can't replace the OS.
- WSL -> Bash (Best, IMHO)
- Cygwin (old, slow IMHO)
- Git Bash (essentially includes bash for windows with a bunch of the more popular add-ons.
But, PowerShell is a pretty great shell, too. Make sure you're running the latest 7.x version, as it's improved tons.
It can run most or all of the widespread *nix shells.
A shell is a program that takes your commands and send them to the OS, it doesn't compile anything
bash is FAR slower than PowerShell, and it's interpreted.
That's not true at all
I have a demonstration that's very telling:
time pwsh
time bash
Post your resultIt's sad that nowadays people do not understand the purpose of a shell
The purpose of the shell, to me, is to
1. Remote management/system administration. 2. Application execution 3. Data modification in situ
And powershell does all 3 for me.
Lastly just typing bash/pwsh is a useless benchmark as I can make both run at wildly different speeds (bash .profile modification and pwsh -noprofile loading)