Fix minor details in new Bats support

This commit is contained in:
Vidar Holen 2019-01-20 14:02:42 -08:00
parent c97cb8cf54
commit e1fe9be7af
4 changed files with 11 additions and 1 deletions

View file

@ -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