<!-Hide warning that zsh can be used by default on Mac->
After updating to macOS Catalina, when I start bash, the following message is displayed. (I'm using fish by default)
ymmmtym@localhost ~> bash
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
ymmmtym@localhost:~$
From the conclusion, it was solved by adding the following to ~ / .bashrc.
~/.bashrc
export BASH_SILENCE_DEPRECATION_WARNING=1
Try to access the site (https://support.apple.com/ja-jp/HT208050) that was displayed obediently with the warning message.
Starting with macOS Catalina, Macs will use zsh as the default login and interactive shells. Earlier versions of macOS can also make zsh the default.
It seems that if you use something other than zsh, a warning message will be displayed.
It seems that the bash binary file is a little different only for Mac.
[email protected]:~$ strings /bin/bash |grep BASH_SILENCE_DEPRECATION_WARNING
[email protected]:~$
ymmmtym@localhost:~$ strings /bin/bash |grep BASH_SILENCE_DEPRECATION_WARNING
BASH_SILENCE_DEPRECATION_WARNING
ymmmtym@localhost:~$
Recommended Posts