]> git.ipfire.org Git - thirdparty/git.git/blob - t/chainlint/subshell-here-doc.test
t/chainlint.sed: drop extra spaces from regex character class
[thirdparty/git.git] / t / chainlint / subshell-here-doc.test
1 (
2 # LINT: stitch together incomplete \-ending lines
3 # LINT: swallow here-doc to avoid false positives in content
4 echo wobba \
5 gorgo snoot \
6 wafta snurb <<-EOF &&
7 quoth the raven,
8 nevermore...
9 EOF
10
11 # LINT: missing "&&" on 'cat'
12 cat <<EOF >bip
13 fish fly high
14 EOF
15
16 # LINT: swallow here-doc (EOF is last line of subshell)
17 echo <<-\EOF >bop
18 gomez
19 morticia
20 wednesday
21 pugsly
22 EOF
23 )