title: bin/ksh cat statement not assigning to variable
body: <p>I'm trying to setup a variable as the login information for an sqlplus statement:</p>
  
  <pre><code>#!/bin/ksh    
  
  DB_AUTH=`cat $BASEDIR/src/env/.$1`@$2
      export DB_AUTH
      echo DB_AUTH=$DB_AUTH
  
      sqlplus -s $DB_AUTH &lt;&lt;ENDOFSQL...(sql statement)
  </code></pre>
  
  <p>I've verified that $BASEDIR, $1, and $2 are all passing to the script correctly, but when I run the script, DB_AUTH returns nothing and the script crashes/doesn't connect to Oracle.</p>
  
  <p>The cat $BASEDIR/src/env/.$1 statement also works when I enter it as a command line.  Just doesn't work inside my script.  Thanks in advance for your help.</p>