I've been wanting to do this for years, but after getting bitten by a misplaced quote the other day, I finally did. This series allows you to do: test_expect_success <<\EOT something 'with single quotes' EOT Thoughts? The first patch is the implementation. The second one shows it off. [1/2]: test-lib: allow test snippets as here-docs [2/2]: t1404: convert to here-doc test bodies t/README | 8 + t/t1404-update-ref-errors.sh | 274 +++++++++++++++++------------------ t/test-lib-functions.sh | 30 +++- 3 files changed, 171 insertions(+), 141 deletions(-) -Peff