Set default shell to MacPorts bash in Mac OS X 10.6.8?

Solution 1:

sh --version is probably the same as /bin/sh --version. If the current shell is bash, you can see its version with echo $BASH_VERSION. If you change the default login shell with chsh, you can keep Terminal's default shell as the login shell.

  1. sudo port install bash
  2. Add /opt/local/bin/bash to /etc/shells
  3. chsh -s /opt/local/bin/bash
  4. Open a new tab and check echo $BASH_VERSION