Skip to content

Commit

Permalink
t/t9001-send-email.sh: sed - remove the i flag for s
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mtelka authored and gitster committed May 17, 2024
1 parent 22c22d3 commit bac28a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t9001-send-email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit bac28a9

Please sign in to comment.