Sample Header Ad - 728x90

again.... bash version mac didn't change

1 vote
1 answer
801 views
On MacOS I installed bash with:
brew install bash
That created /usr/local/Cellar/bash/5.0.18/bin/bash The command which -a bash reports only /bin/bash. If I close the terminal, reboot, etc. I see the same output. I added the new bash to /etc/private/shells, then changed my default shell to the new version of bash:
sudo vim /private/etc/shells # added new bash 5.0.18 path
chsh -s /usr/local/Cellar/bash/5.0.18/bin/bash
Then I rebooted, but I still see:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.
What's wrong?
Asked by Aleksandr Lebedev (113 rep)
Aug 11, 2020, 12:07 AM
Last activity: Aug 11, 2024, 08:59 AM