title: Why is this tcsh shell script giving the error while setting PATH LD_LIBRARY_PATH
body: <p>I have created a tcsh shell script as follows:</p>
  
  <pre><code>#!/bin/tcsh
  
  setenv PATH  ""
  setenv PATH  .:$HOME/bin:/usr/sbin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/bin:$PATH
  
  setenv LD_LIBRARY_PATH ""
  setenv LD_LIBRARY_PATH .:/usr/local/cuda/lib:/usr/local/cuda/lib64/:/usr/local/cuda:/usr/lib:/usr/lib32:/usr/local/cuda/bin:/usr/local/lib/:${LD_LIBRARY_PATH}
  </code></pre>
  
  <p>Then I have made this script executable and when I try to execute it as</p>
  
  <p>./script.sh, it gives following errors:</p>
  
  <p>script.sh: 3: setenv: not found</p>
  
  <p>script.sh: 4: setenv: not found</p>
  
  <p>script.sh: 6: setenv: not found</p>
  
  <p>script.sh: 7: setenv: not found</p>
  
  <p>Any pointers, how to set these paths in my shell script?</p>