SC1042 – ShellCheck Wiki

See this page on GitHub

Sitemap


Close matches include -eof (!= eof).

Problematic code:

#!/bin/bash
cat <<-eof
Hello World
-eof

Correct code:

#!/bin/bash
cat <<- eof
Hello World
eof

Rationale:

See companion error SC1041. This error occurs at the same time it.


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