]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/t9001-send-email.sh: sed - remove the i flag for s
authorMarcel Telka <marcel@telka.sk>
Fri, 17 May 2024 16:57:46 +0000 (18:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 19:15:52 +0000 (12:15 -0700)
The 'i' flag for the 's' command of sed is not specified by POSIX so
it is not portable.  Replace its usage by different and portable
syntax.

Signed-off-by: Marcel Telka <marcel@telka.sk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9001-send-email.sh

index 5a771000c9ca0de56bf21e4d8212a6581727b189..58699f8e4eedd674ea4426ab4bd9c0e80238bd89 100755 (executable)
@@ -2526,7 +2526,7 @@ test_expect_success $PREREQ 'test forbidSendmailVariables behavior override' '
 
 test_expect_success $PREREQ '--compose handles lowercase headers' '
        write_script fake-editor <<-\EOF &&
-       sed "s/^From:.*/from: edited-from@example.com/i" "$1" >"$1.tmp" &&
+       sed "s/^[Ff][Rr][Oo][Mm]:.*/from: edited-from@example.com/" "$1" >"$1.tmp" &&
        mv "$1.tmp" "$1"
        EOF
        clean_fake_sendmail &&