Warning: here-document at line 2 delimited by end-of-file (wanted `EOF')

Solution Verified - Updated -

Issue

When customer run a scirpt below messages will output:

[root@R73 ~]# ./test.sh 
./test.sh: line 6: warning: here-document at line 2 delimited by end-of-file (wanted `EOF')
./test.sh: line 7: syntax error: unexpected end of file

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.