title: How to export environment variable with space in path on terminal
body: <p>I just downloaded Java and according to the Java Control Panel the executable is at this directory:
  <code>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java</code></p>
  
  <p>Now I want to export an env variable <code>JAVA_HOME</code> as such:</p>
  
  <pre><code>&gt;export JAVA_HOME=“/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java”
  </code></pre>
  
  <p>But when I print out the variable everything after the space is butchered</p>
  
  <pre><code>&gt;$JAVA_HOME
  -bash: “/Library/Internet: No such file or directory
  </code></pre>
  
  <p>How do I properly export this path to the variable?</p>
  
  <p>Now there is another <a href="https://stackoverflow.com/questions/12902227/how-to-input-a-path-with-a-white-space">question</a> that answers this but that answer there doesn't work:</p>
  
  <pre><code>&gt;SOME_PATH="/mnt/someProject/some path"
  &gt;$SOME_PATH
  -bash: /mnt/someProject/some: No such file or directory
  </code></pre>
  
  <p>And using the other answer on there:</p>
  
  <pre><code>&gt;SOME_PATH=/mnt/someProject/some\ path
  &gt;$SOME_PATH
  -bash: /mnt/someProject/some: No such file or directory
  </code></pre>
  
  <p>And here is my bash version (I'm on macOS 10.14.5):</p>
  
  <pre><code>&gt;echo $BASH_VERSION
  3.2.57(1)-release
  </code></pre>