title: White Space in Path is not being ignored in .sh file
body: <p>I've searched through multiple questions / responses but didn't find one that worked out for me.</p>
  
  <p>I'm on Windows and I'm trying to run an application through Git Bash:</p>
  
  <pre><code>$ ./bin/program.sh config/program.properties
  </code></pre>
  
  <p>And the error I get is:</p>
  
  <pre><code>C:/bin/program.sh: line 127: C:\Program: No such file or directory
  </code></pre>
  
  <p>I've narrowed the problem to be an earlier section in the .sh</p>
  
  <pre><code>if [ -z "$JAVA_HOME" ]; then
    JAVA="java"
  else
    JAVA="$JAVA_HOME/bin/java"
  fi
  </code></pre>
  
  <p>And well, line 127 has:</p>
  
  <pre><code>exec $JAVA ...
  </code></pre>
  
  <p>There's more to the line but the problem is in the JAVA_HOME part. My JAVA_HOME is </p>
  
  <pre><code>C:\Program Files\Java\jre1.8.0_111\bin\java
  </code></pre>
  
  <p>I've tried multitudes of different ways to replace the JAVA to beat the white space</p>
  
  <pre><code>"C:\\Program Files\\Java\\jre1.8.0_111\\bin\\java"
  "C:\\Program/ Files\\Java\\jre1.8.0_111\\bin\\java"
  "C:/Program\ Files/Java/jre1.8.0_111/bin/java"
  C:/"Program Files"/Java/jre1.8.0_111/bin/java
  'C:/Program Files/Java/jre1.8.0_111/bin/java'
  </code></pre>
  
  <p>There are probably more combinations but I've forgotten. Is this a problem with Git Bash? Or is this something about .sh files that I'm unaware of? Or do white space delimiters do not work when stored in $JAVA? Or is this a completely different problem?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Wrapping <code>$JAVA</code> in quotes: <code>"$JAVA"</code> fixes it.</p>