Merge branch 'jc/submodule-sync-no-auto-vivify'
[gitweb.git] / t / t7810-grep.sh
index 1227fa69b4840d6eb8f9e915d911fcddb55076dd..a29ae45b399f89123f886f5b35580bcdc0e803f1 100755 (executable)
@@ -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
 '