Skip to content
Vidar Holen edited this page Oct 4, 2015 · 3 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.

Clone this wiki locally