Git Mailing List Archive mirror
 help / color / mirror / Atom feed
From: Marcel Telka <>
Subject: [PATCH] t/ sed - remove the i flag for s
Date: Fri, 17 May 2024 18:57:46 +0200	[thread overview]
Message-ID: <ZkeMiifGHkIsehz3@telcontar> (raw)

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

Signed-off-by: Marcel Telka <>
 t/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ b/t/
index 5a771000c9..58699f8e4e 100755
--- a/t/
+++ b/t/
@@ -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:" "$1" >"$1.tmp" &&
+	sed "s/^[Ff][Rr][Oo][Mm]:.*/from:" "$1" >"$1.tmp" &&
 	mv "$1.tmp" "$1"
 	clean_fake_sendmail &&

                 reply	other threads:[~2024-05-17 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZkeMiifGHkIsehz3@telcontar \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).