Created SC1115 (markdown)

koalaman
2017-04-08 16:36:21 -07:00
parent 5abc684b23
commit 6468bb013c

24
SC1115.md Normal file

@@ -0,0 +1,24 @@
## Remove spaces between # and ! in the shebang.
### Problematic code:
```sh
# !/bin/sh
echo "Hello World"
```
### Correct code:
```sh
#!/bin/sh
echo "Hello World"
```
### Rationale:
The script has spaces between the `#` and `!` in the shebang. This is not valid.
Remove the spaces so the OS can correctly recognize the file as a script.
### Exceptions:
None.