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://concisionandconcinnity.blogspot.de/2009/03/upgrade-bash-to-40-in-mac-os-x.html