Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 4 revisions

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

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