4 ms·
It's 'easier' for some people but you lose GNU bash compatibility and it kinda underlines all of the issues with interactive only shell systems -- a lack of int
by SMP-UX 2y ago
It's 'easier' for some people but you lose GNU bash compatibility and it kinda underlines all of the issues with interactive only shell systems -- a lack of interoperability.
It's honestly a non-issue in the current year to learn zsh or tcsh
- ComputerGuru 2y agoOn the other hand, fish being a clean-room shell implementation not beholden to the baggage of legacy systems is immune to some crazy behaviors or vulnerabilities that other shells - including zsh - are prone to: https://yossarian.net/til/post/some-surprising-code-execution-sources-in-bash/ https://yossarian.net/til/post/some-surprising-code-executio... Compatibility has also come a long way in recent releases; you should give it a try.
- arp242 2y agoThey don't work in zsh; they're bash issues.
- faho 2y agoNo, they work in zsh, with one extremely small change: The referenced variable needs to exist. Try this (tested with zsh 5.9 on archlinux): foo='PWD[$(echo hahaha >&2)0]+42' [[ "$foo" -eq 5 ]] In bash, this would also print "hahaha" with "a" (or any other possible variable name) instead of "PWD", that's why many think it doesn't work at all in zsh. I'm pretty sure zsh has an optimization where it skips the indexing if the variable doesn't exist, which happens to sometimes stop this. But since you can just reference variables like PWD, that you know exist, it's not really a security improvement.
- SMP-UX 2y agoI don't have a system capable of building rust applications so no thank you