Created SC2122 (markdown)

koalaman
2014-03-16 14:49:36 -07:00
parent 1e39ff2b3a
commit 300215c3ea

17
SC2122.md Normal file

@@ -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