4 ms·
Bash/POSIX shell. It's necessary because it's the standard, and you can't expect computers to have a better shell by default. It's good enough for simple things
by rhn_mk1 6y ago
Bash/POSIX shell. It's necessary because it's the standard, and you can't expect computers to have a better shell by default. It's good enough for simple things that scripts for it grow complex enough to warrant something better. It's only bearable because it's familiar after years of experience.
It's terrible because it does everything to make it hard to write scripts. Three syntaxes for using variables, and only one will not cause breakage. Stringly typed. Killer spaces when looping. Arcane syntax for conditionals, where despite 10 years of coding I can't write a simple if/else without looking at references.
And it's widespread enough that it won't die.
- nsl73 6y agoNot only is sh so widespread that it won’t die, but my own backlog of sh scripts, code snippets, config, and muscle memory is so deep that I refuse to use anything that doesn’t have good compatibility with sh. I also hate it. It’s not the worst piece of software I use everyday, but every time I need to do something more complex than completely routine I find myself fiddling much more than I should have to.