title: Shell script error "syntax error at line 145: `<<' unmatched"
body: <p>This is from a shell script I modified and added to:</p>
  <p>Trying to figure out why I'm getting this: &quot;syntax error at line 145: `&lt;&lt;' unmatched&quot;.
  It's from the following excerpt:</p>
  <pre><code>                    #########################################################
                      #F T P RQV F I L E S
                      #########################################################
  
                      cat &gt; ${FTP_SCRIPT} &lt;&lt;EOF
                      open ${FTP_BOX}
                      lcd ${WORK_IN}
                      cd ..
                      quote site lrecl=4000 recfm=vb cyl pri=50 sec=50
                      put ${FINAL_FILE} ${MF_RQVFILE}
                      quit
                      EOF
  </code></pre>
  <p>There is no other occurrence of the 'EOF' string anywhere else in this script. I ran into something like this years ago, but of course, I can't remember what the fix is.</p>