Skip to content
koalaman edited this page Mar 16, 2014 · 7 revisions

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

Clone this wiki locally