title: Shell Program Syntax error: unexpected end of file
body: <p>I am writing a shell script that will only execute if there are no arguments, but keep getting</p>
  
  <pre><code>Line 17: syntax error: unexpected end of file
  </code></pre>
  
  <p>when I run it in terminal. Any help would be appreciated.</p>
  
  <pre><code>if ($#argv != 0) then
      echo "You entered too many arguments!"
  
      exit 1
  
  endif
  
  echo "Correct number of arguments"
  
  exit 40
  </code></pre>