mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-11 22:02:37 +08:00
Suggest using $((..))
in [ 2*3 -eq 6 ]
(fixes #1641)
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user