mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 10:05:09 +08:00
Save and restore pending here docs when sourcing files (fixes #2803)
This commit is contained in:
@@ -508,5 +508,14 @@ prop_rcCanSuppressEarlyProblems2 = null result
|
||||
csScript = "!/bin/bash\necho 'hello world'"
|
||||
}
|
||||
|
||||
prop_sourceWithHereDocWorks = null result
|
||||
where
|
||||
result = checkWithIncludes [("bar", "true\n")] "source bar << eof\nlol\neof"
|
||||
|
||||
prop_hereDocsAreParsedWithoutTrailingLinefeed = 1044 `elem` result
|
||||
where
|
||||
result = check "cat << eof"
|
||||
|
||||
|
||||
return []
|
||||
runTests = $quickCheckAll
|
||||
|
Reference in New Issue
Block a user