mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1113 (markdown)
22
SC1113.md
Normal file
22
SC1113.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
## Use #!, not just #, for the shebang.
|
||||||
|
|
||||||
|
### Problematic code:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# /bin/bash
|
||||||
|
echo "Hello World"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Correct code:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
#! /bin/bash
|
||||||
|
echo "Hello World"
|
||||||
|
```
|
||||||
|
### Rationale:
|
||||||
|
|
||||||
|
You appear to be specifying a shebang, but missing the bang (i.e. `!`). The shebang should always be on the form `#!/path/shell`.
|
||||||
|
|
||||||
|
### Exceptions:
|
||||||
|
|
||||||
|
None.
|
Reference in New Issue
Block a user