#!
, not just
!
, for the shebang.!/bin/sh
echo "Hello"
#!/bin/sh
echo "Hello"
You appear to be specifying an interpreter in a shebang, but it's
missing the hash part. The shebang must always start with
#!
.
Even the name "shebang" itself comes from "hash" (#
) +
"bang" (!
).
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.