diff --git a/SC2122.md b/SC2122.md new file mode 100644 index 0000000..594ade4 --- /dev/null +++ b/SC2122.md @@ -0,0 +1,17 @@ +## >= is not a valid operator. Use '! a > b' instead. + +### Problematic code: + + [[ a <= b ]] + +### Correct code: + + [[ ! a > b ]] + +### Rationale: + +The typical operators `<=` and `>=` are not supported by Bourne shells. Instead of "less than or equal", rewrite as "not greater than". + +### Contraindications + +None \ No newline at end of file