4 ms·
Agreed. Mostly a result of "if I had to learn it so should you" and stuck-in-the-mud attitudes. Look at the Linux systemd / init debate. Despite the fact that
by IshKebab 11y ago
Agreed. Mostly a result of "if I had to learn it so should you" and stuck-in-the-mud attitudes.
Look at the Linux systemd / init debate. Despite the fact that sysvinit is clearly ancient, awful technology there are still people who have spend time learning it and don't want something better.
Another example: bash. Clearly an awful awful language/shell but it sticks around because too many people can't admit that the thing they know is rubbish.
- zenlikethat 11y agoThere are lots of reasons people resisted systemd initially that had nothing to do with resisting learning a new system. Likewise with bash, what's the better alternative? And don't say fish. Just because it bills itself as such doesn't make it an improvement. All tools have some overhead to learning them.
- JdeBP 11y agoWe don't need to hypothesize an answer. We live in a world where we can see an answer, if we know our history. People decided almost 10 years ago that there was a better way to do certain things than use the Bourne Again shell, and switched to using the Debian Almquist shell. * http://unix.stackexchange.com/a/250965/5132 http://unix.stackexchange.com/a/250965/5132
- zenlikethat 11y agoInteresting bit of history, I had assumed the parent was complaining about bash interactive shells with the usual "they're hard to use for humans" position. The link suggests that the major gain of Debian Almquist was performance.
- philh 11y agoThis feels like bulverism: you've decided that people are wrong, and now you've come up with a fully general explanation for why they're wrong. https://en.wikipedia.org/wiki/Bulverism https://en.wikipedia.org/wiki/Bulverism If you ask people why they use bash, and why they don't like systemd, you get perfectly reasonable answers. (I'm not going to go into them here for obvious reasons.) You can't just dismiss these people as stick-in-the-muds.
- marssaxman 11y agoI suspect it is more that it sticks around because it has stuck around. Quirks it may have but you can learn them and count on consistency. It is all well and good to pick a better shell but you can't expect any machine but yours to have it.
- yeowMeng 11y agoFair enough - bash has a lot of tough features to learn. IMO, bash sticks around because a lot of people still find it useful. Example: I have 2 mins to check if a duplicate line has occured in a log file with some arbitrary logging format. One pipeline later, I have an answer.
- qbrass 11y agoYour example shows why having a shell is useful, but isn't specific to bash.
- ArkyBeagle 11y agoI do not use bash in any way where it's bad. It's purely a "save me some typing" thing.
- EdiX 11y ago> Another example: bash. Clearly an awful awful language/shell but it sticks around because too many people can't admit that the thing they know is rubbish. You should try thinking about what a better bash would look like, it's not as simple as you make it to be. I think the best I've seen in this direction is rc and I think that's still not enough to compensate for the loss of ubiquity. The stuff people come up when they try to "redesign the unix terminal" (usually some javascript contraption) is always extremely lacking.
- bufordsharkley 11y ago> You should try thinking about what a better bash would look like It's kind of a "cheat," but I've been really happy playing with xonsh (which is essentially bash + ipython)[0]. Bash with better control flow and types... it's suddenly not so maddening anymore. [0] https://news.ycombinator.com/item?id=9207738 https://news.ycombinator.com/item?id=9207738
- EdiX 11y agoI do not think that this: >>> print("my home is $HOME") my home is $HOME >>> echo "my home is $HOME" my home is /home/snail constitutes progress in user experience. And that's from the tutorial (I appreciate the honesty though)
- hinkley 11y agoPeople forget, repeatedly, at length and often boisterously, that one of the fundamental points of bash is to continue to function when the rest of your machine is completely screwed up. Loading an entire development environment into your CLI is ten tons of bad news in a five pound bag.
- JdeBP 11y ago> "redesign the unix terminal" ... is not the same as the Bourne Again shell and scripting language, that IshKebab was talking about.
- IshKebab 11y agoIt's not simple, but it's not hard to imagine. Some of these things exist already: * Image support (I can't remember where I saw this but it exists) * Structured data piping (in Powershell) * Machine-readable command-line arguments, which would enable... * ...Proper autocomplete (like in IDEs) * Real types (Bash is 'stringly typed') * Sanity (e.g. look at how `[` is implemented in Bash; none of that) * A better way to integrate with programs than running them on the command line (e.g. shell bindings). That last one would be tricky and really requires moving away from the C ABI as the Lingua Franca of libraries. That is probably quite far away in the future unfortunately.
- collyw 11y agoBash is quite cool, it just has a dreadful syntax.