shell bash macos add tag
The default macOS install of bash is 3.2. `brew install bash` currently installs bash 5. How do you install bash 4?
Top Answer
James Douglas
1. Find the bash formula commit history:

1. Find the latest commit that uses bash 4, for example: [`bash: update 4.4.23 bottle.`]( and click "Browse files"

1. Navigate to [Formula/bash.rb](, and click "Raw"

1. Copy the URL, and run `brew install <url>` so for example:
brew install
And that should install bash version 4.4.


Based off answer to SO question [Homebrew install specific version of formula?](

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.