Reparse indices after attaching here docs (fixes #2846)

This commit is contained in:
Vidar Holen 2023-12-10 19:13:34 -08:00
parent f2729f73cb
commit a9e7bf1950
2 changed files with 6 additions and 3 deletions

View file

@ -516,6 +516,9 @@ prop_hereDocsAreParsedWithoutTrailingLinefeed = 1044 `elem` result
where
result = check "cat << eof"
prop_hereDocsWillHaveParsedIndices = null result
where
result = check "#!/bin/bash\nmy_array=(a b)\ncat <<EOF >> ./test\n $(( 1 + my_array[1] ))\nEOF"
return []
runTests = $quickCheckAll