From 300215c3eaf141f7f1f9d628edfdc6f6efbb58d9 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sun, 16 Mar 2014 14:49:36 -0700 Subject: [PATCH] Created SC2122 (markdown) --- SC2122.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SC2122.md 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