Skip to content

Commit

Permalink
Merge branch 'mk/grep-pcre'
Browse files Browse the repository at this point in the history
* mk/grep-pcre:
  t7810: avoid unportable use of "echo"
  • Loading branch information
Junio C Hamano committed Jun 20, 2011
2 parents dc4cd76 + 93d5e0c commit 13b70d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t7810-grep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit 13b70d2

Please sign in to comment.