mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 17:13:08 -07:00
Warnings for braces/globs/arrays in [/[[.
This commit is contained in:
parent
0048f34b11
commit
6aee12a572
2 changed files with 65 additions and 8 deletions
|
@ -276,6 +276,8 @@ isOnlyRedirection t =
|
|||
|
||||
isFunction t = case t of T_Function {} -> True; _ -> False
|
||||
|
||||
isBraceExpansion t = case t of T_BraceExpansion {} -> True; _ -> False
|
||||
|
||||
-- Get the lists of commands from tokens that contain them, such as
|
||||
-- the body of while loops or branches of if statements.
|
||||
getCommandSequences t =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue