@matheusbsbs / matheus-bagliano / commits / 4c8b046f82
Fork 0

t5520: let sed open its own input

We were using a redirection operator to feed input into sed. However, since sed is capable of opening its own files, make sed open its own files instead of redirecting input into it. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Nov 12, 2019 at 15:07 UTC 4c8b046f82cbc468fc28b6e52883a15ee2942ec7
1 file changed +1 -1
t/t5520-pull.sh
+1 -1
@@ -5,7 +5,7 @@ test_description='pulling into void'
5 . ./test-lib.sh
6
7 modify () {
8 - sed -e "$1" <"$2" >"$2.x" &&
8 + sed -e "$1" "$2" >"$2.x" &&
9 mv "$2.x" "$2"
10 }
11