From 6f8229614652a45d13e7300f274bfe0a4ff09cc5 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 17 Feb 2018 22:07:27 -0800 Subject: [PATCH] Created SC1129 (markdown) --- SC1129.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SC1129.md diff --git a/SC1129.md b/SC1129.md new file mode 100644 index 0000000..bc89f1d --- /dev/null +++ b/SC1129.md @@ -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 \ No newline at end of file