Add T_SourceCommand to wrap source commands and sourced code

Fixes #1181
This commit is contained in:
Ng Zhi An 2018-05-22 22:43:26 -07:00
parent 77546fba2f
commit 884eff0c36
3 changed files with 11 additions and 5 deletions

View file

@ -1922,7 +1922,7 @@ readSource pos t@(T_Redirecting _ _ (T_SimpleCommand _ _ (cmd:file:_))) = do
let included = do
src <- subRead filename script
return $ T_Include id t src
return $ T_SourceCommand id t (T_Include id src)
let failed = do
parseNoteAt pos WarningC 1094