mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated SC2122 (markdown)
@@ -2,7 +2,7 @@
|
||||
|
||||
### Problematic code:
|
||||
|
||||
[[ a <= b ]]
|
||||
[[ a <= b ]]
|
||||
|
||||
### Correct code:
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
### Rationale:
|
||||
|
||||
The typical operators `<=` and `>=` are not supported by Bourne shells. Instead of "less than or equal", rewrite as "not greater than".
|
||||
The operators `<=` and `>=` are not supported by Bourne shells. Instead of "less than or equal", rewrite as "not greater than".
|
||||
|
||||
### Contraindications
|
||||
|
||||
|
Reference in New Issue
Block a user