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:
commit
13b70d2ad9
|
@ -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
|
||||||
'
|
'
|
||||||
|
|
Loading…
Reference in New Issue