Add warning about local in sh or not in bash functions.

This commit is contained in:
Vidar Holen
2015-10-10 20:48:52 -07:00
parent 58d45e3fa4
commit 1eece5b2ee
2 changed files with 12 additions and 2 deletions

View File

@@ -224,6 +224,8 @@ isAssignment t =
T_Annotation _ _ w -> isAssignment w
otherwise -> False
isFunction t = case t of T_Function {} -> True; _ -> False
-- Get the list of commands from tokens that contain them, such as
-- the body of while loops and if statements.
getCommandSequences t =