summaryrefslogtreecommitdiffstats
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorMarcel Telka <marcel@telka.sk>2024-05-17 18:57:46 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-17 21:15:52 +0200
commitbac28a942a08d8812a89649c1198ae7abd539ec1 (patch)
tree1562454db6ccc21305835e356d12efc62eba96f9 /t/t9001-send-email.sh
parentt/t9118-git-svn-funky-branch-names.sh: sed needs semicolon (diff)
downloadgit-bac28a942a08d8812a89649c1198ae7abd539ec1.tar.xz
git-bac28a942a08d8812a89649c1198ae7abd539ec1.zip
t/t9001-send-email.sh: sed - remove the i flag for s
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>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 5a771000c9..58699f8e4e 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -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 &&