The problem is two fold:
- Upgrade bash from brew, using "brew upgrade bash"
- The solution (aka step 1) requires Terminal to be opened, which doesn't.
So this is what I did. As it turns out the old bash version is incompatible with the newer upgrade of readline. So the deal is to hunt the location of readline in finder.
In my case, it is at /usr/local/Cellar/readline
Inside the above readline
directory I found two directories: "6.3.8"
and "7.0"
.
I renamed "7.0" to "7.0-old"
Created new directory "7.0" and copied contents of "6.3.8" in it.
Hurray! The Terminal now opens-up.
Now, run "brew upgrade bash"
from terminal. And in the mean time, restore the readline
directory to previous state like below:
- Delete "7.0" directory you created
- Rename "7.0-old" to "7.0"
You're now good to go. Cheers!