| 1 | test_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 |
| 15 | EOF |
| 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 | ' |