Created SC1129 (markdown)

Vidar Holen
2018-02-17 22:07:27 -08:00
parent 72e812a525
commit 6f82296146

22
SC1129.md Normal file

@@ -0,0 +1,22 @@
## You need a space before the !.
### Problematic code:
```sh
while! [ -f file ]
do sleep 1; done
```
### Correct code:
```sh
while ! [ -f file ]
do sleep 1; done
```
### Rationale:
ShellCheck found a keyword immediately followed by a `!`. There needs to be a space between them.
### Exceptions:
None