5 ms·
macOS Catalina Will Replace Bash with Zsh ― Scotch.io
- checkyoursudo 7y agoI use the terminal on a daily basis, but not too much with shell scripts anymore. Will I notice a difference?
- saagarjha 7y agoIf you just type commands into a prompt, then no, not really. If you do anything more advanced than that I think you’ll notice the differences quite quickly (I did).
- checkyoursudo 7y agoOn my laptop, which is my only macOS device, the only scripts I use are a few python ones. Anything more advanced is on a linux desktop or server. Otherwise, on mac it's mostly ranger, vim, and ssh. I've been tempted to try other shells, but at this point after using Bash for 15 years or something, I've just never had the motivation enough to do it.
- hylaride 7y agozsh combined with oh-my-zsh changed my life, but I spend a lot of time in the terminal.
- Hamuko 7y ago`brew install zsh` and find out.
- teilo 7y agoNo need for homebrew. It's already there. Mojave ships with 5.3: ~ /bin/zsh --version zsh 5.3 (x86_64-apple-darwin18.0)
- Bahamut 7y agoMost shell scripts start with a reference to the program that should execute them at the top of the file (i.e. #!/usr/bin/bash), so this shouldn't affect most people, especially since this change will only apply to new users.
- checkyoursudo 7y agoI missed that "new user accounts" the first time I read it.
- aequitas 7y agoDepends on the default Zsh configuration file they provide. When I used Zsh in the past with just the default config I found some Bash 'features' missing. Stuff like reverse-i-search (ctrl-r) and tab-completion. Most of them are simple config changes but they don't make a default Zsh a drop-in replacement for Bash from a user perspective. I think this is also the reason projects like Oh-my-zsh.
- j0057 7y agoNo, because the syntax of zsh is mostly similar to bash. Yes, because it's only mostly similar. For scripts that start with `#!/bin/bash`, no difference at all, because they will still run with bash.
- toyg 7y ago"Replace" is a loaded word, this is blogspam. In Catalina the default login shell for new users will be Zsh, but Bash will still be on the system (and likely still the default shell for upgraded users). So in practice, if your bangs are correct and you upgrade your systems, nothing will change.
- slimscsi 7y agoIn the developer beta, existing users are moved to zsh on install.
- mwnivek 7y agoPrevious discussions: https://news.ycombinator.com/item?id=20090193 https://news.ycombinator.com/item?id=20090193 https://news.ycombinator.com/item?id=20102427 https://news.ycombinator.com/item?id=20102427
- cattlefarmer 7y agoI'm not even complaining about the ads. Where's the content? Apple is recommending developers switch out bash to zsh in anticipation of this change. That's it? Not even a 'Here's a Bash to ZSH migration' tutorial or anything?
- markstos 7y ago"Apple replaces shell designed 30 years ago with one designed 29 years ago" FISH, the "Friendly Interactive Shell"-- now 15 years old-- provides a more substantial leap forward in autocompletion and auto-suggestion, while adding some breaking changes to improve the overall design of the language and user experience. It's still highly compatible with bash or zsh syntax for day-to-day usage. http://fishshell.com/ http://fishshell.com/ Try `fish_config` to launch a browser where you can select a theme. Enjoy autocompletion for 500 commands by default. Need help for a built-in command? Try `help test` to read the docs for the `test` command in your browser.
- Something1234 7y agoOh my zsh and a few zsh plugings completely blow fish out of the water for me. First off zsh doesn't have any supposed syntax improvements so I can take any new skills I acquire to environments other than my own.
- paladinxx 7y agoI think array indexes start at 1 in zsh rather than 0 as they do in bash. It sounds like such a ludicrous change that I'm having trouble recalling if this is really true, but I had previously used zsh a lot... Just got lazy with my last MBP upgrade and never installed zsh.
- tmysl 7y agofish is also not posix compliant, it would never ship as a default shell https://stackoverflow.com/questions/48732986/why-how-fish-does-not-support-posix https://stackoverflow.com/questions/48732986/why-how-fish-do...