t5150: protect backslash with backslash in shell
authorJunio C Hamano <gitster@pobox.com>
Sat, 8 May 2010 04:29:50 +0000 (21:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 May 2010 04:30:29 +0000 (21:30 -0700)
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>
t/t5150-request-pull.sh

index 4c7f48a8077c8f7b84cd4ef25ad530a9347ce12a..8e0425b7ac9f5949c706dedf47b25bdf2ee26fdd 100644 (file)
@@ -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
        }