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 guerraart8 to find a specific , or see Checks.

Clone this wiki locally