summaryrefslogtreecommitdiff
path: root/t/chainlint/subshell-here-doc.test
blob: 9c3564c247e0d15e96a13e1092f848d301a828a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(
# LINT: stitch together incomplete \-ending lines
# LINT: swallow here-doc to avoid false positives in content
	echo wobba \
	       gorgo snoot \
	       wafta snurb <<-EOF &&
	quoth the raven,
	nevermore...
	EOF

# LINT: missing "&&" on 'cat'
	cat <<EOF >bip
	fish fly high
	EOF

# LINT: swallow here-doc (EOF is last line of subshell)
	echo <<-\EOF >bop
	gomez
	morticia
	wednesday
	pugsly
	EOF
)