mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-30 11:39:20 -07:00
Allow [ foo \> bar ], while warning for [[ .. \> .. ]] and [ 1 \< 2 ]
This commit is contained in:
parent
10d4abf235
commit
92d0ae8b6b
2 changed files with 18 additions and 6 deletions
|
@ -213,7 +213,7 @@ readConditionContents single = do
|
|||
typ = if single then SingleBracket else DoubleBracket
|
||||
readCondBinaryOp = try $ do
|
||||
id <- getNextId
|
||||
op <- (choice $ (map tryOp ["==", "!=", "<=", ">=", "=~", ">", "<", "="])) <|> otherOp
|
||||
op <- (choice $ (map tryOp ["==", "!=", "<=", ">=", "=~", ">", "<", "=", "\\<=", "\\>=", "\\<", "\\>"])) <|> otherOp
|
||||
hardCondSpacing
|
||||
return op
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue