{"thread":{"id":"61505","subject":"[PATCH] t/t9001-send-email.sh: sed - remove the i flag for s","startedAt":"2024-05-17T16:57:49Z","lastAt":"2024-05-17T16:57:49Z","messageCount":1,"participants":["Marcel Telka"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"494984","messageId":"ZkeMiifGHkIsehz3@telcontar","threadId":"61505","inReplyTo":null,"subject":"[PATCH] t/t9001-send-email.sh: sed - remove the i flag for s","fromName":"Marcel Telka","fromEmail":"marcel@telka.sk","sentAt":"2024-05-17T16:57:46Z","receivedAt":"2024-05-17T16:57:49Z","isPatch":true,"sender":{"key":"marcel@telka.sk","avatar":"https://avatars.githubusercontent.com/u/3000173?v=4"},"body":"The 'i' flag for the 's' command of sed is not specified by POSIX so\nit is not portable.  Replace its usage by different and portable\nsyntax.\n\nSigned-off-by: Marcel Telka <marcel@telka.sk>\n---\n t/t9001-send-email.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh\nindex 5a771000c9..58699f8e4e 100755\n--- a/t/t9001-send-email.sh\n+++ b/t/t9001-send-email.sh\n@@ -2526,7 +2526,7 @@ test_expect_success $PREREQ 'test forbidSendmailVariables behavior override' '\n \n test_expect_success $PREREQ '--compose handles lowercase headers' '\n \twrite_script fake-editor <<-\\EOF &&\n-\tsed \"s/^From:.*/from: edited-from@example.com/i\" \"$1\" >\"$1.tmp\" &&\n+\tsed \"s/^[Ff][Rr][Oo][Mm]:.*/from: edited-from@example.com/\" \"$1\" >\"$1.tmp\" &&\n \tmv \"$1.tmp\" \"$1\"\n \tEOF\n \tclean_fake_sendmail &&\n"}]}