SC1043 – ShellCheck Wiki

See this page on GitHub

Sitemap


Found EOF further down, but with wrong casing.

Problematic code:

cat << EOF
Hello World
Eof

Correct code:

cat << EOF
Hello World
EOF

Rationale:

ShellCheck found a here document (<<) where the end token is missing. However, the end token appears with different case further down. If this was meant to be the end of the here document, make sure the case matches.

Exceptions:

None. This error is only emitted when the here document is incomplete.


ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.