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:
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user