Upgrading bash in OSX

By | 2013/06/22

Upgrading

To upgrade bash you need to install bash via brew:

brew install bash

then add /usr/local/bin/bash to /etc/shells and change the default shell with following command:

chsh -s /usr/local/bin/bash

Check if your bash version is ok:

bash --version

if its not, go to /etc/paths and shift /usr/local/bin to be over the /bin

Reference

http://stackoverflow.com/questions/16416195/how-do-i-upgrade-bash-in-mac-osx-mountain-lion-and-set-it-the-correct-path

http://concisionandconcinnity.blogspot.de/2009/03/upgrade-bash-to-40-in-mac-os-x.html