From: Denton Liu Date: Tue, 12 Nov 2019 23:07:52 +0000 (-0800) Subject: t5520: let sed open its own input X-Git-Tag: v2.25.0-rc0~73^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c8b046f82cbc468fc28b6e52883a15ee2942ec7;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh index a3de2e19b6..55560ce3cd 100755 --- a/t/t5520-pull.sh +++ b/t/t5520-pull.sh @@ -5,7 +5,7 @@ test_description='pulling into void' . ./test-lib.sh modify () { - sed -e "$1" <"$2" >"$2.x" && + sed -e "$1" "$2" >"$2.x" && mv "$2.x" "$2" }