mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 05:21:34 -07:00
Suggest using $((..))
in [ 2*3 -eq 6 ]
(fixes #1641)
This commit is contained in:
parent
de9ab4e6ef
commit
afea62de4e
3 changed files with 28 additions and 2 deletions
|
@ -114,6 +114,10 @@ binaryTestOps = [
|
|||
"-gt", "-ge", "=~", ">", "<", "=", "\\<", "\\>", "\\<=", "\\>="
|
||||
]
|
||||
|
||||
arithmeticBinaryTestOps = [
|
||||
"-eq", "-ne", "-lt", "-le", "-gt", "-ge"
|
||||
]
|
||||
|
||||
unaryTestOps = [
|
||||
"!", "-a", "-b", "-c", "-d", "-e", "-f", "-g", "-h", "-L", "-k", "-p",
|
||||
"-r", "-s", "-S", "-t", "-u", "-w", "-x", "-O", "-G", "-N", "-z", "-n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue