Brian Charles Gernhardt <> writes:

> Another problem caused by BSD v GNU sed, I think.
>       git cat-file blob HEAD:x |
>       sed "/preline/a\
>       ADDED" >x &&

Actually, I think what is happening is that inside "", the backslash
at the end of line is eaten by the shell together with that end of
line, so it is not BSD vs GNU, but it simply is that my quoting was

This (disregarding the previous "TARGET" patch) may be a smaller fix.

 t/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git c/t/ w/t/
index 3527686..0f2dd40 100755
--- c/t/
+++ w/t/
@@ -28,7 +28,7 @@ test_expect_success 'setup' '
        git commit -m initial &&
        git cat-file blob HEAD:x |
-       sed "/preline/a\
+       sed "/preline/a\\
        ADDED" >x &&
        git update-index --add x &&
        git commit -m next &&

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to