diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2018-08-13 04:47:35 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-13 12:22:11 -0700 |
commit | 7e32a31b2101c3ced65ea9367c747930a4eb39d9 (patch) | |
tree | 86893d053f76b38cef1056130bbfad77999847ae /t/chainlint/subshell-here-doc.test | |
parent | chainlint: match arbitrary here-docs tags rather than hard-coded names (diff) | |
download | tgif-7e32a31b2101c3ced65ea9367c747930a4eb39d9.tar.xz |
chainlint: match 'quoted' here-doc tags
A here-doc tag can be quoted ('EOF') or escaped (\EOF) to suppress
interpolation within the body. Although, chainlint recognizes escaped
tags, it does not know about quoted tags. For completeness, teach it to
recognize 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 05139af0b5..b6b5a9b33a 100644 --- a/t/chainlint/subshell-here-doc.test +++ b/t/chainlint/subshell-here-doc.test @@ -27,5 +27,9 @@ glink FIZZ ARBITRARY + cat <<-'ARBITRARY2' >bup2 && + glink + FIZZ + ARBITRARY2 meep ) |