100 points · by sheharyarn · 7y ago · 44 comments
Bash is the least worst language for bootstrapping since the alternative is POSIX shell which is even more difficult to get right.
The biggest issue is that Bash 3.x arrays don't work well with `set -u`.
What is wrong with GPLv3 for Apple and why is it okay in Linux?
EDIT: Linux is GPLv2 only and does not accept GPLv3 submissions. It is likely that your question can be restated as “Why are GPLv3 programs able to use syscalls in Linux without infecting the kernel with GPLv3 compliance requirements?”, and this is likely due to the clearly declared syscall exception as noted in their licensing docs:
https://github.com/torvalds/linux/blob/master/Documentation/...
And, Torvalds commented on never-GPLv3 in 2006:
Apple's lawyers probably think different.
You can install all the GPLv3 software you want on your Mac (Macports and homebrew make it easy). But Apple made it clear that they are not going to ship anything GPLv3 licensed.
Wrong
> I'd rather use an OS that's willing to ship essential software.
Ok, there's Linux in that case.
> The OS is there to serve the user, not make their lives more difficult because of petty licensing concerns.
"Petty licensing concerns" are an issue for big companies.
I think if one only ever uses their own computers fish is better, but having to switch contexts, having to have different configurations and so on is a pain and not very productive.
https://anisse.astier.eu/bash-to-fish.html
One thing I haven't touched in my article: globbing behaves differently than the default, which means you have to quote your '*.ext' arguments when using find for example. This is fairly well documented: https://fishshell.com/docs/current/index.html#expand
I very rarely move back to bash, so I consider this migration a success :-) If you haven't yet, should try it !
Now I use Fish Shell on Linux and it's fine for what I usually do.
Works out-of-the-box for me on most machines (i.e. I don't maintain shell settings besides downloadding GRML zsh regularly) and it is not as big as oh-my-zsh.
If you're looking to replace oh-my-zsh with something sane and fast, zprezto has been my go-to choice.
Source: https://developer.apple.com/documentation/macos_release_note...
A pity they didn't make a structured output shell rather than traditional regex scraping but their main concern is compatibility, and zsh fits nicely.