Created SC1104 (markdown)

koalaman
2017-04-08 15:02:22 -07:00
parent db553bf16f
commit 09585e4c18

25
SC1104.md Normal file

@@ -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.