2 SC1115
Joachim Ansorg edited this page 2021-11-12 18:56:14 +01:00

Remove spaces between # and ! in the shebang.

Problematic code:

# !/bin/sh
echo "Hello World"

Correct code:

#!/bin/sh
echo "Hello World"

Rationale:

The script has spaces between the # and ! in the shebang. This is not valid.

Remove the spaces so the OS can correctly recognize the file as a script.

Exceptions:

None.