1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-28 09:16:10 +02:00

Merge branch 'mk/grep-pcre'

* mk/grep-pcre:
  t7810: avoid unportable use of "echo"
This commit is contained in:
Junio C Hamano 2011-06-20 14:49:44 -07:00
commit 13b70d2ad9

View File

@ -658,9 +658,9 @@ test_expect_success LIBPCRE 'grep -P -v pattern' '
' '
test_expect_success LIBPCRE 'grep -P -i pattern' ' test_expect_success LIBPCRE 'grep -P -i pattern' '
{ cat >expected <<-EOF &&
echo "hello.c: printf(\"Hello world.\n\");" hello.c: printf("Hello world.\n");
} >expected && EOF
git grep -P -i "PRINTF\([^\d]+\)" hello.c >actual && git grep -P -i "PRINTF\([^\d]+\)" hello.c >actual &&
test_cmp expected actual test_cmp expected actual
' '