mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 13:31:36 -07:00
Fix minor details in new Bats support
This commit is contained in:
parent
c97cb8cf54
commit
e1fe9be7af
4 changed files with 11 additions and 1 deletions
|
@ -351,6 +351,14 @@ isOnlyRedirection t =
|
|||
|
||||
isFunction t = case t of T_Function {} -> True; _ -> False
|
||||
|
||||
-- Bats tests are functions for the purpose of 'local' and such
|
||||
isFunctionLike t =
|
||||
case t of
|
||||
T_Function {} -> True
|
||||
T_BatsTest {} -> True
|
||||
_ -> False
|
||||
|
||||
|
||||
isBraceExpansion t = case t of T_BraceExpansion {} -> True; _ -> False
|
||||
|
||||
-- Get the lists of commands from tokens that contain them, such as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue