Sync with 'master'
[alt-git.git] / t / chainlint / here-doc.test
blobc91b6953197cce758fef8c52f92961ad3780d440
1 test_expect_success 'here-doc' '
2 # LINT: stitch together incomplete \-ending lines
3 # LINT: swallow here-doc to avoid false positives in content
4 boodle wobba \
5        gorgo snoot \
6        wafta snurb <<EOF &&
7 quoth the raven,
8 nevermore...
9 EOF
11 # LINT: swallow here-doc with arbitrary tag
12 cat <<-Arbitrary_Tag_42 >foo &&
13 snoz
14 boz
15 woz
16 Arbitrary_Tag_42
18 # LINT: swallow "quoted" here-doc
19 cat <<"zump" >boo &&
20 snoz
21 boz
22 woz
23 zump
25 # LINT: swallow here-doc (EOF is last line of test)
26 horticulture <<\EOF
27 gomez
28 morticia
29 wednesday
30 pugsly
31 EOF