SC2079 – ShellCheck Wiki

See this page on GitHub

Sitemap


(( )) doesn't support decimals. Use bc or awk.

Bash arithmetic conditional evaluation can only be performed on integers. More detail: Bash has limited data types which include integer, but everything is effectively untyped.

Suggested workarounds to this constraint use bc or awk, here are some examples.


ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.