Installing Bash4

A new macbook pro comes installed with bash version 3. I needed to install bash 4 to be able to use the bash debug vs code extension. To do this run

brew install bash

once its done you will need to edit /etc/shells file so that it looks like following:

WITSC02X6385JGH:temp sjain68$ cat /etc/shells

# List of acceptable shells for chpass(1).

# Ftpd will not allow users to connect who are not using

# one of these shells.

# 4.x of bash

/usr/local/bin/bash

# 3.x of bash

/bin/bash

/bin/csh

/bin/ksh

/bin/sh

/bin/tcsh

/bin/zsh
This entry was posted in Computers, programming, Software and tagged . Bookmark the permalink.

Leave a comment