1
0
mirror of https://github.com/git/git.git synced 2024-09-29 17:51:22 +02:00

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>
This commit is contained in:
Junio C Hamano 2010-05-07 21:29:50 -07:00
parent 50ab6558bf
commit 5bab69172f

@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
: diffstat : diffstat
n n
/ [0-9]* files changed/ { / [0-9]* files changed/ {
a\ a\\
DIFFSTAT DIFFSTAT
b b
} }
@ -102,7 +102,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
/^[a-zA-Z]* ([0-9]*):\$/ n /^[a-zA-Z]* ([0-9]*):\$/ n
/^\$/ N /^\$/ N
/^\n[a-zA-Z]* ([0-9]*):\$/! { /^\n[a-zA-Z]* ([0-9]*):\$/! {
a\ a\\
SHORTLOG SHORTLOG
D D
} }