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 <gitster@pobox.com>
Junio C Hamano committed
May 7, 2010 at 21:29 UTC
5bab69172fc20bb86b5245bd1ec41c32dae9eaa6
1 file changed
+2
-2
t/t5150-request-pull.sh
+2
-2
@@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
92
: diffstat
93
n
94
/ [0-9]* files changed/ {
95
- a\
95
+ a\\
96
DIFFSTAT
97
b
98
}
@@ -102,7 +102,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
102
/^[a-zA-Z]* ([0-9]*):\$/ n
103
/^\$/ N
104
/^\n[a-zA-Z]* ([0-9]*):\$/! {
105
- a\
105
+ a\\
106
SHORTLOG
107
D
108
}