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