4 SC1084
Joachim Ansorg edited this page 2021-11-12 10:46:17 +01:00

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.