title: Strange command substitution behaviour in windows git bash
body: <p>When I use the command substitution operator in <code>git-bash.exe</code>, the output does not seem to be correct. For example:</p>
  <pre class="lang-sh prettyprint-override"><code>$ git branch
    master
    one
  * two
  
  $ ls
  a  b  c
  
  $ echo $(git branch)
  master one a b c two
  </code></pre>
  <p>As you can see, the output of <code>$(git branch)</code> seems to have the files in the current working directory inserted into it.</p>
  <p>Why is this happening, and how can I fix it?</p>