title: Bash: Why can't I assign an absolute path to a variable?
body: <p>I am trying to assign an absolute path to a variable in Bash:</p>
  
  <pre><code>#!/bin/bash
  DIR= "/home/foobar"
  
  echo "$DIR/test"
  </code></pre>
  
  <p>The output:</p>
  
  <pre><code>./test.sh: line 2: /home/foobar: Is a directory
  /test
  </code></pre>
  
  <p>I don't understand what is happening there, please help me.</p>