title: path in shebang
body: <p>I have /bin/bash (3.2) and /usr/local/bin/bash (4.0) on my computer. In the $PATH environment variable, bash 4.0 is prior to bash 3.2. </p>
  
  <p>in my bash script shebang, I don't like to explicitly use:</p>
  
  <pre><code>#!/usr/local/bin/bash
  </code></pre>
  
  <p>I'd like to find bash based on $PATH priority. How to do it? Thanks!</p>