7 ms·
Does it still come with a 20 year version of bash by default?
by koolba 6y ago
Does it still come with a 20 year version of bash by default?
- eric-hu 6y agoSomething like that, but they changed the default shell to zsh, which is newer.
- _-___________-_ 6y agosudo port install bash && echo /usr/local/bin/bash | sudo tee -a /etc/shells && chsh -s /usr/local/bin/bash
- asguy 6y ago... and then you run a script that depends on `/bin/bash` .. but uses a feature (e.g. coproc, associative arrays) from a version less than a decade old. And then you go and update your PATH and shebang lines to call out `/usr/bin/env bash` and hope things go right.
- anuragsoni 6y agoStarting with macOS Catalina zsh is the default [1] shell. [1] https://support.apple.com/en-us/HT208050 https://support.apple.com/en-us/HT208050
- dietr1ch 6y agoTIL zsh is more than 20 years old https://en.wikipedia.org/wiki/Z_shell https://en.wikipedia.org/wiki/Z_shell
- nijaru 6y agoI prefer linux, but it is quite easy to install different shells on macOS.