X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7810-grep.sh;h=6379ad60bcb9b5b56eb773b5a987745356c24df6;hb=36612e4daf8b5b5eaf16315aa13c66925f878cd6;hp=69bd576d1c1a0bfcd086b68d8dc07c03c22b7a5a;hpb=1f9a980636d39c08c1cf1c13a6e6584d9d039e0e;p=git.git diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 69bd576d1..6379ad60b 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -658,9 +658,9 @@ test_expect_success LIBPCRE 'grep -P -v pattern' ' ' 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 '