SC1114 – ShellCheck Wiki

See this page on GitHub


Remove leading spaces before the shebang.

Problematic code:

echo "Hello world"

Correct code:

echo "Hello World"


The script has leading spaces before the shebang (#!). This is not allowed.

The #! should be the first two bytes in the file, as they're used as a file signature by the OS to determine whether a file is a script.



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