4 ms·
Powershell is better than bash. The things that are awkward about it are also awkward in bash, and generally less so (usually having to do with quoting details
by partdavid 5y ago
Powershell is better than bash.
The things that are awkward about it are also awkward in bash, and generally less so (usually having to do with quoting details). Nothing is worse than in bash. And a huge amount of things are better.
It's not perfect, there are things I don't like, aesthetic things that are a little strange, but these are shortcomings compared to some imaginary perfect shell, or to some other programming language. Not compared to bash.
The only advantage bash has is install base and familiarity. Which isn't nothing, but on the merits of the program itself, powershell is better. I switched a couple years ago and haven't looked back.
- cutler 5y agoPowerShell is a verbose monstrosity that could only have been produced by a corporation like Microsoft and which appeals to those who pray at the altar of OOP. There, I've said it. Please leave shell scripting nice and imperative/procedural, far from the distant sound of approaching OOP jackboots.
- partdavid 5y agoYou might like tclsh.
- nickthemagicman 5y agoI like python for that exact reason. You can get everything you want done with functions and imports. If want to OOP it's there but not convoluted. Its like OOP light.
- cutler 5y agoFor a shell substitute, though, Ruby and Perl are better due to their enhanced support for one-liners. Matz was smart enough to retain Perl's virtues when he created Ruby. Sadly Python has taken over in the same way that VHS killed-off Betamax.