mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 17:11:00 +08:00
Allow [ foo \> bar ], while warning for [[ .. \> .. ]] and [ 1 \< 2 ]
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user