mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-24 13:29:34 +08:00
Added extglobs as splitting words
This commit is contained in:
@@ -78,6 +78,7 @@ willSplit x =
|
|||||||
T_DollarBraced _ _ -> True
|
T_DollarBraced _ _ -> True
|
||||||
T_DollarExpansion _ _ -> True
|
T_DollarExpansion _ _ -> True
|
||||||
T_BraceExpansion _ s -> True
|
T_BraceExpansion _ s -> True
|
||||||
|
T_Extglob _ _ _ -> True
|
||||||
T_NormalWord _ l -> any willSplit l
|
T_NormalWord _ l -> any willSplit l
|
||||||
T_Literal _ s -> isGlob s
|
T_Literal _ s -> isGlob s
|
||||||
_ -> False
|
_ -> False
|
||||||
|
Reference in New Issue
Block a user