
org.sonar.l10n.shellcheck.rules.shellcheck.SC1104.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-shellcheck-plugin Show documentation
Show all versions of sonar-shellcheck-plugin Show documentation
ShellCheck plugin for SonarQube
The newest version!
Use #!, not just !, for the shebang.
Problematic code
!/bin/sh
echo "Hello"
Correct code
#!/bin/sh
echo "Hello"
Rationale
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" (!
).
Exceptions
None.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy