From: Junio C Hamano Date: Sat, 8 May 2010 04:29:50 +0000 (-0700) Subject: t5150: protect backslash with backslash in shell X-Git-Tag: v1.7.2-rc0~114^2~2^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5bab69172fc20bb86b5245bd1ec41c32dae9eaa6;p=git.git t5150: protect backslash with backslash in shell At least /bin/sh on FreeBSD 8 interprets backslash followed by newline in an unquoted here text as "empty". Signed-off-by: Junio C Hamano --- diff --git a/t/t5150-request-pull.sh b/t/t5150-request-pull.sh index 4c7f48a80..8e0425b7a 100644 --- a/t/t5150-request-pull.sh +++ b/t/t5150-request-pull.sh @@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' ' : diffstat n / [0-9]* files changed/ { - a\ + a\\ DIFFSTAT b } @@ -102,7 +102,7 @@ test_expect_success 'setup: two scripts for reading pull requests' ' /^[a-zA-Z]* ([0-9]*):\$/ n /^\$/ N /^\n[a-zA-Z]* ([0-9]*):\$/! { - a\ + a\\ SHORTLOG D }