mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-10 07:13:00 -07:00
Add T_SourceCommand to wrap source commands and sourced code
Fixes #1181
This commit is contained in:
parent
77546fba2f
commit
884eff0c36
3 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue