mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 02:03:51 +08:00
Add T_SourceCommand to wrap source commands and sourced code
Fixes #1181
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user