Skip to content

Commit 385e175

Browse files
pks-tgitster
authored andcommitted
t4150: fix warning printed by awk due to escaped '\@'
In 6aec8d3 (t: refactor tests depending on Perl to print data, 2025-04-03) we have changed one of the tests in t4150 to use awk(1) instead of Perl. The test works, but at least gawk(1) prints a warning now: awk: cmd. line:3: warning: escape sequence `\@' treated as plain `@' Fix this by removing the backslash. Reported-by: SZEDER Gábor <[email protected]> Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 16bd9f2 commit 385e175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4150-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ test_expect_success 'am works with multi-line in-body headers' '
10861086
# bump from, date, and subject down to in-body header
10871087
awk "
10881088
/^From:/{
1089-
print \"From: x <x\@example.com>\";
1089+
print \"From: x <[email protected]>\";
10901090
print \"Date: Sat, 1 Jan 2000 00:00:00 +0000\";
10911091
print \"Subject: x\n\";
10921092
}; 1

0 commit comments

Comments
 (0)