Skip to content

Commit bac28a9

Browse files
mtelkagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22c22d3 commit bac28a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9001-send-email.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ test_expect_success $PREREQ 'test forbidSendmailVariables behavior override' '
25262526

25272527
test_expect_success $PREREQ '--compose handles lowercase headers' '
25282528
write_script fake-editor <<-\EOF &&
2529-
sed "s/^From:.*/from: [email protected]/i" "$1" >"$1.tmp" &&
2529+
sed "s/^[Ff][Rr][Oo][Mm]:.*/from: [email protected]/" "$1" >"$1.tmp" &&
25302530
mv "$1.tmp" "$1"
25312531
EOF
25322532
clean_fake_sendmail &&

0 commit comments

Comments
 (0)