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…
x
Reference in New Issue
Block a user