cat << eof # --- Start greeting -- Hello--- End greeting ---eof #
cat << eof # --- Start greeting -- Hello eof--- End greeting --- #
The terminator token for a here document must be on an entirely separate line. No comments are allowed on this line.
Place the comment somewhere else, such as on the following line.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.