News for hackers. Stuff that matters.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by checkyoursudo on Tuesday June 25, 2019 @10:20AM (#20274443)
I use the terminal on a daily basis, but not too much with shell scripts anymore. Will I notice a difference?
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by Bahamut on Tuesday June 25, 2019 @10:25AM (#20274490)
Most 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.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by checkyoursudo on Tuesday June 25, 2019 @10:26AM (#20274512)
I missed that "new user accounts" the first time I read it.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by aequitas on Tuesday June 25, 2019 @10:27AM (#20274513)
Depends 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.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by j0057 on Tuesday June 25, 2019 @10:29AM (#20274534)
No, 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.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by saagarjha on Tuesday June 25, 2019 @10:24AM (#20274479)
If 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).
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by checkyoursudo on Tuesday June 25, 2019 @10:32AM (#20274568)
On 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.

Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by hylaride on Tuesday June 25, 2019 @10:36AM (#20274606)
zsh combined with oh-my-zsh changed my life, but I spend a lot of time in the terminal.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by Hamuko on Tuesday June 25, 2019 @10:24AM (#20274480)
`brew install zsh` and find out.
Re:macOS Catalina Will Replace Bash with Zsh ― Scotch.io by teilo on Tuesday June 25, 2019 @03:28PM (#20277940)
No need for homebrew. It's already there. Mojave ships with 5.3:

  ~ /bin/zsh --version
  zsh 5.3 (x86_64-apple-darwin18.0)