diff --git a/SC1027.md b/SC1027.md new file mode 100644 index 0000000..7410fd5 --- /dev/null +++ b/SC1027.md @@ -0,0 +1,24 @@ +## Expected another argument for this operator. + +### Problematic code: + +```sh +[ $a -ne ] +``` + +### Correct code: + +```sh +[ $a -ne $b ] +``` +### Rationale: + +ShellCheck found a `test` operator without an operand. This could be a copy-paste fail, bad linebreak, or trying to use `<>` instead of `!=` or `-ne`. + +### Exceptions: + +None. + +### Related resources: + +* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file