From 5bab69172fc20bb86b5245bd1ec41c32dae9eaa6 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 7 May 2010 21:29:50 -0700 Subject: [PATCH] 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 --- t/t5150-request-pull.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5150-request-pull.sh b/t/t5150-request-pull.sh index 4c7f48a807..8e0425b7ac 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 }