t4014: fix arguments to grep
commit27f6342f615a4e3fc4dcab5cef2b6bc9ca574ce6
authorJunio C Hamano <gitster@pobox.com>
Wed, 19 Dec 2012 03:13:30 +0000 (18 19:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Dec 2012 15:45:13 +0000 (19 07:45 -0800)
tree12cec65e880d48badb68eaad35fe8d6c51eccbb4
parent2060ed50e76bfc89e2421cffbb56694e9d803593
t4014: fix arguments to grep

These "expect-failure" tests were not looking for the right string
in the patch file.  For example:

grep "^ *"S. E. Cipient" <scipient@example.com>\$" patch5

was looking for "^ *S." in these three files:

    "E."
    "Cipient <scipient@example.com>$"
    "patch5"

With some implementations of grep, the lack of file "E." was
reported as an error, leading to the failure of the test.

With other implementations of grep, the pattern "^ *S." matched what
was in patch5, without diagnosing the missing files as an error, and
made these tests unexpectedly pass.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4014-format-patch.sh