6 SC2122
Joachim Ansorg edited this page 2021-11-12 19:36:47 +01:00

>= is not a valid operator. Use ! a < b instead.

Problematic code:

[[ a &lt;= b ]]

Correct code:

[[ ! a > b ]]

Rationale:

The operators <= and >= are not supported by Bourne shells. Instead of "less than or equal", rewrite as "not greater than".

Exceptions

None