Save and restore pending here docs when sourcing files (fixes #2803)

This commit is contained in:
Vidar Holen 2023-07-30 16:52:40 -07:00
commit 9490b94886
3 changed files with 19 additions and 3 deletions

View file

@ -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