mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08: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:
parent
50ab6558bf
commit
5bab69172f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user