Skip to content
spoelstraethan edited this page Apr 28, 2022 · 6 revisions

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally

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.