Skip to content

Commit 13b70d2

Browse files
committed
Merge branch 'mk/grep-pcre'
* mk/grep-pcre: t7810: avoid unportable use of "echo"
2 parents dc4cd76 + 93d5e0c commit 13b70d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t7810-grep.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ test_expect_success LIBPCRE 'grep -P -v pattern' '
658658
'
659659

660660
test_expect_success LIBPCRE 'grep -P -i pattern' '
661-
{
662-
echo "hello.c: printf(\"Hello world.\n\");"
663-
} >expected &&
661+
cat >expected <<-EOF &&
662+
hello.c: printf("Hello world.\n");
663+
EOF
664664
git grep -P -i "PRINTF\([^\d]+\)" hello.c >actual &&
665665
test_cmp expected actual
666666
'

0 commit comments

Comments
 (0)