title: How can I get iTerm to use the newer version of bash that brew shows? Change a user's shell on OSX
body: <p>When I do the <code>brew upgrade</code>I see I do have the newer version.  How can I use it?</p>
  
  <pre><code>$ bash -version
  GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
  Copyright (C) 2007 Free Software Foundation, Inc.
  $ brew upgrade bash
  Error: bash-4.2.45 already installed
  $ which bash
  /bin/bash
  </code></pre>
  
  <p>I do see I have</p>
  
  <pre><code>/usr/local/Cellar/bash/4.2.45/bin
  </code></pre>
  
  <p>but when i do</p>
  
  <pre><code>$ /usr/local/Cellar/bash/4.2.45/bin/bash
  </code></pre>
  
  <p>I am still in</p>
  
  <pre><code>$ bash -version
  GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
  Copyright (C) 2007 Free Software Foundation, Inc.
  08:06:45 mdurrant w89123148q1 /usr/local/Cellar/bash/4.2.45/bin master
  </code></pre>
  
  <p>The contents of <code>/etc/shells</code> are:</p>
  
  <pre><code>/usr/local/Cellar/bash/4.2.45/bin/bash  # (I added this)
  /usr/local/bin/bash
  /bin/bash
  /bin/csh
  /bin/ksh
  /bin/sh
  /bin/tcsh
  /bin/zsh
  </code></pre>
  
  <p>chsh didn't seem to do what I hoped:</p>
  
  <pre><code>$ chsh -s /usr/local/Cellar/bash/4.2.45/bin/bash
  Changing shell for mdurrant.
  Password for mdurrant:
  chsh: /usr/local/Cellar/bash/4.2.45/bin/bash: non-standard shell
  $ bash --version
  GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
  Copyright (C) 2007 Free Software Foundation, Inc.
  </code></pre>
  
  <p>I have the file here:</p>
  
  <pre><code>$ l /usr/local/Cellar/bash/4.2.45/bin/bash
  -r-xr-xr-x  1 mdurrant  admin  699688 Apr 14 19:54 /usr/local/Cellar/bash/4.2.45/bin/bash*
  </code></pre>
  
  <p>I've yet to actually see the new bash version for anyway that I try interactively to invoke it.</p>
  
  <p><code>$ echo $BASH_VERSION</code> shows  </p>
  
  <pre><code>3.2.51(1)-release
  </code></pre>
  
  <p>I tried using dscl and did</p>
  
  <pre><code>&gt; change Local/Default/Users/mdurrant UserShell /bin/bash /usr/local/Cellar/bash/4.2.45/bin/bash
  </code></pre>
  
  <p>but got</p>
  
  <pre><code>&lt;main&gt; attribute status: eDSAttributeNotFound
  &lt;dscl_cmd&gt; DS Error: -14134 (eDSAttributeNotFound)
  </code></pre>
  
  <p>and now list shows </p>
  
  <pre><code>&gt; UserShell: /usr/local/Cellar/bash/4.2.45/bin/bash
  </code></pre>