Joined June 2019
·

peggyli

Part-time Teaching Assistant and Researcher at University of Mancester
·
Manchester
·

Posted to Upgrade bash on your mac os ! over 1 year ago

Hi Rafal,

I have upgraded bash as instructed above.
echo $BASH_VERSION
is fine with response : 4.3.42(1)-release

However, the terminal still has issue
sh --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Terminal preferences setting:
Shells open with:
/usr/local/Cellar/bash/4.3.42/bin/bash

I have also done (using 'su' privilege) :
bash -c "echo $(brew --prefix)/bin/bash >> /private/etc/shells"
Do I need to fill in anything for $(brew --prefix) ?
Do I need to replace --prefix with anything etc. ?

I have restarted my MacBook, but still could not get it right.

I still have the issue with bad negative array index! Would appreciate your help.

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills