summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-20 21:49:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-20 21:49:44 (GMT)
commit13b70d2ad96a79fb439c6b4fc0e8058b1762bae2 (patch)
treea3f7708ea1875ace01b23cb4047ccb3cfd43cd18
parentdc4cd767108532161d27554162a8742f5b607eb8 (diff)
parent93d5e0c2087916941934b1e55c979c52f5af3f20 (diff)
downloadgit-13b70d2ad96a79fb439c6b4fc0e8058b1762bae2.zip
git-13b70d2ad96a79fb439c6b4fc0e8058b1762bae2.tar.gz
git-13b70d2ad96a79fb439c6b4fc0e8058b1762bae2.tar.bz2
Merge branch 'mk/grep-pcre'
* mk/grep-pcre: t7810: avoid unportable use of "echo"
-rwxr-xr-xt/t7810-grep.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
index 69bd576..6379ad6 100755
--- a/t/t7810-grep.sh
+++ b/t/t7810-grep.sh
@@ -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
'