Created SC1035 (markdown)

koalaman
2014-03-28 19:01:34 -07:00
parent 8dc19820f7
commit 45bf8c1a67

17
SC1035.md Normal file

@@ -0,0 +1,17 @@
## You need a space here
### Problematic code:
if ![-z foo ]; then true; fi
### Correct code:
if ! [ -z foo ]; then true; fi
### Rationale:
Bourne shells are very whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script. In these cases, ShellCheck has noticed that you're missing a space at the position indicated.
### Contraindications
None.