title: SGE Command Not Found, Undefined Variable
body: <p>I'm attempting to setup a new compute cluster, and currently experiencing errors when using the qsub command in the SGE. Here's a simple experiment that shows the problem:</p>
  <p><strong>test.sh</strong></p>
  <pre><code>#!/usr/bin/zsh
  
  test=&quot;hello&quot;
  echo &quot;${test}&quot;
  </code></pre>
  <p><strong>test.sh.eXX</strong></p>
  <blockquote>
  <p>test=hello: Command not found.</p>
  <p>test: Undefined variable.</p>
  </blockquote>
  <p><strong>test.sh.oXX</strong></p>
  <blockquote>
  <p>Warning: no access to tty (Bad file descriptor).</p>
  <p>Thus no job control in this shell.</p>
  </blockquote>
  <p>If I ran the script on the head node (sh test.sh), the output is correct. I submit the job to the SGE by typing &quot;qsub test.sh&quot;.</p>
  <p>If I submit the exact same script job in the same way on an established compute cluster like HPC, it works perfectly as expected. What setting could be causing this problem?</p>
  <p>Thanks for any help on this matter.</p>