mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 13:31:36 -07:00
Improve detection of for loops with single values
This commit is contained in:
parent
d28c8f883f
commit
a57f6d2886
3 changed files with 23 additions and 6 deletions
|
@ -47,6 +47,7 @@ willSplit x =
|
|||
T_BraceExpansion {} -> True
|
||||
T_Glob {} -> True
|
||||
T_Extglob {} -> True
|
||||
T_DoubleQuoted _ l -> any willBecomeMultipleArgs l
|
||||
T_NormalWord _ l -> any willSplit l
|
||||
_ -> False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue