diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2018-08-29 09:45:32 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-29 17:57:38 (GMT) |
commit | 3042b6bb59787613e36e459bf60994a26bb5a5df (patch) | |
tree | 33e4e502498f304e2cc861dd37d22c3970d9f668 /t/chainlint/subshell-here-doc.test | |
parent | 4f69176feb1b441d46dab7a0ac679df7edf44f5f (diff) | |
download | git-3042b6bb59787613e36e459bf60994a26bb5a5df.zip git-3042b6bb59787613e36e459bf60994a26bb5a5df.tar.gz git-3042b6bb59787613e36e459bf60994a26bb5a5df.tar.bz2 |
chainlint: match "quoted" here-doc tags
A here-doc tag can be quoted ('EOF'/"EOF") or escaped (\EOF) to suppress
interpolation within the body. chainlint recognizes single-quoted and
escaped tags, but does not know about double-quoted tags. For
completeness, teach it to recognize double-quoted tags, as well.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/subshell-here-doc.test')
-rw-r--r-- | t/chainlint/subshell-here-doc.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/chainlint/subshell-here-doc.test b/t/chainlint/subshell-here-doc.test index b6b5a9b..f6b3ba4 100644 --- a/t/chainlint/subshell-here-doc.test +++ b/t/chainlint/subshell-here-doc.test @@ -31,5 +31,9 @@ glink FIZZ ARBITRARY2 + cat <<-"ARBITRARY3" >bup3 && + glink + FIZZ + ARBITRARY3 meep ) |