diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
index 69bd576d1c1a0bfcd086b68d8dc07c03c22b7a5a..6379ad60bcb9b5b56eb773b5a987745356c24df6 100755 (executable)
--- a/t/t7810-grep.sh
+++ b/t/t7810-grep.sh
'
test_expect_success LIBPCRE 'grep -P -i pattern' '
- {
- echo "hello.c: printf(\"Hello world.\n\");"
- } >expected &&
+ cat >expected <<-EOF &&
+ hello.c: printf("Hello world.\n");
+ EOF
git grep -P -i "PRINTF\([^\d]+\)" hello.c >actual &&
test_cmp expected actual
'