Ask HN: Are there no shells for Windows other than PowerShell and CMD?
And I don't mean terminal emulators, because I know Console Host, WT, Kitty, Alacritty. I mean shells like bash, zsh.
How come there are so many alternatives for linux but none for Windows?
Nothing against PowerShell, I'm just curious.
22 comments
[ 2.6 ms ] story [ 48.9 ms ] threadIt can run most or all of the widespread *nix shells.
Very convenient on my work laptop where I can't replace the OS.
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:
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)
I only state a fact, you pick what you want that empowers you to do great things
But i'm not going to ignore wrong claims, it lowers the standard of quality we should expect from the tools we create, share and use
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.
- 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.