Git fork
1test_expect_success 'nested-here-doc' '
2# LINT: inner "EOF" not misintrepreted as closing ARBITRARY here-doc
3cat <<ARBITRARY >foop &&
4naddle
5fub <<EOF
6 nozzle
7 noodle
8EOF
9formp
10ARBITRARY
11
12(
13# LINT: inner "EOF" not misintrepreted as closing INPUT_END here-doc
14 cat <<-\INPUT_END &&
15 fish are mice
16 but geese go slow
17 data <<EOF
18 perl is lerp
19 and nothing else
20 EOF
21 toink
22 INPUT_END
23
24# LINT: same but missing "&&"
25 cat <<-\EOT
26 text goes here
27 data <<EOF
28 data goes here
29 EOF
30 more test here
31 EOT
32
33 foobar
34)
35'