interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / subshell-here-doc.test

37 lines · 608 bytes Raw Blame History
1test_expect_success 'subshell-here-doc' '
2(
3# LINT: stitch together incomplete \-ending lines
4# LINT: swallow here-doc to avoid false positives in content
5 echo wobba \
6 gorgo snoot \
7 wafta snurb <<-EOF &&
8 quoth the raven,
9 nevermore...
10 EOF
11
12# LINT: missing "&&" on "cat"
13 cat <<EOF >bip
14 fish fly high
15EOF
16
17# LINT: swallow here-doc (EOF is last line of subshell)
18 echo <<-\EOF >bop
19 gomez
20 morticia
21 wednesday
22 pugsly
23 EOF
24) &&
25(
26# LINT: swallow here-doc with arbitrary tag
27 cat <<-\ARBITRARY >bup &&
28 glink
29 FIZZ
30 ARBITRARY
31 cat <<-"ARBITRARY3" >bup3 &&
32 glink
33 FIZZ
34 ARBITRARY3
35 meep
36)
37'