title: Upgrading bash on mac
body: <p>I've tried to upgrade my bash version on my Macbook Pro (Mojave OS). To do this, I've run:</p>
  
  <pre><code>brew install bash
  sudo nano /etc/shells # And then added the new bash shell to the bottom of the list. 
  chsh -s /usr/local/Cellar/bash/5.0.11/bin/bash
  </code></pre>
  
  <p>After doing this, <code>bash -version</code> still returns version 3 but <code>echo $BASH_VERSION</code> print's version 5. If I try and make an associative array (I think this isn't present in 3), it works, so I assume I am using the new shell. Why has my bash version not updated?</p>