Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 6 revisions

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

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature guerraart8 to find a specific , or see Checks.

Clone this wiki locally