Skip to content

Commit

Permalink
t5150: protect backslash with backslash in shell
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 8, 2010
1 parent 50ab655 commit 5bab691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t5150-request-pull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
: diffstat
n
/ [0-9]* files changed/ {
a\
a\\
DIFFSTAT
b
}
Expand All @@ -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
}
Expand Down

0 comments on commit 5bab691

Please sign in to comment.