Created SC1069 (markdown)

Vidar Holen
2018-02-17 22:17:53 -08:00
parent b4b919073a
commit fd898a99f5

22
SC1069.md Normal file

@@ -0,0 +1,22 @@
## You need a space before the [.
### Problematic code:
```sh
if[ -e file ]
then echo "exists"; fi
```
### Correct code:
```sh
if [ -e file ]
then echo "exists"; fi
```
### Rationale:
ShellCheck found a keyword immediately followed by a `[`. There needs to be a space between them.
### Exceptions:
None