title: Bash: Syntax error: redirection unexpected
body: <p>I do this in a script:</p>
  
  <pre><code>read direc &lt;&lt;&lt; $(basename `pwd`)
  </code></pre>
  
  <p>and I get:</p>
  
  <pre><code>Syntax error: redirection unexpected
  </code></pre>
  
  <p>in an ubuntu machine</p>
  
  <pre><code>/bin/bash --version
  GNU bash, version 4.0.33(1)-release (x86_64-pc-linux-gnu)
  </code></pre>
  
  <p>while I do not get this error in another suse machine:</p>
  
  <pre><code>/bin/bash --version
  GNU bash, version 3.2.39(1)-release (x86_64-suse-linux-gnu)
  Copyright (C) 2007 Free Software Foundation, Inc.
  </code></pre>
  
  <p>Why the error?</p>