1 SC2246
Vidar Holen edited this page 2019-01-13 17:36:14 -08:00

This shebang specifies a directory. Ensure the interpreter is a file.

Problematic code:

#!/bin/sh/
echo "Hello World"

Correct code:

#!/bin/sh
echo "Hello World"

Rationale:

The shebang specifies which file to use as an interpreter, but probably due to some kind of typo, your script's interpreter ends in a /, indicating a directory.

Ensure it points to a valid executable filename.

Exceptions:

None

  • Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!