SC1084 – ShellCheck Wiki

See this page on GitHub

Sitemap


Use #!, not !#, for the shebang.

Problematic code:

!#/bin/sh
echo "Hello World"

Correct code:

#!/bin/sh
echo "Hello World"

Rationale:

The shebang has been accidentally swapped. The # should come first: #!, not !#.

Exceptions

None.


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