From 09585e4c18d912e52ee58a7328e631619ec844ff Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 8 Apr 2017 15:02:22 -0700 Subject: [PATCH] Created SC1104 (markdown) --- SC1104.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SC1104.md diff --git a/SC1104.md b/SC1104.md new file mode 100644 index 0000000..0db3335 --- /dev/null +++ b/SC1104.md @@ -0,0 +1,25 @@ +## Use #!, not just !, for the shebang. + +### Problematic code: + +```sh +!/bin/sh +echo "Hello" +``` + +### Correct code: + +```sh +#!/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. \ No newline at end of file