Skip to content

Commit 5bab691

Browse files
committed
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 <[email protected]>
1 parent 50ab655 commit 5bab691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5150-request-pull.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
9292
: diffstat
9393
n
9494
/ [0-9]* files changed/ {
95-
a\
95+
a\\
9696
DIFFSTAT
9797
b
9898
}
@@ -102,7 +102,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
102102
/^[a-zA-Z]* ([0-9]*):\$/ n
103103
/^\$/ N
104104
/^\n[a-zA-Z]* ([0-9]*):\$/! {
105-
a\
105+
a\\
106106
SHORTLOG
107107
D
108108
}

0 commit comments

Comments
 (0)