+ grep -qs "^${ip}:" "${f}" || echo "${ip}$"${f}"
This does not use extended regular expressions in any way. While at it change the way these matches are done: it's irrelevant if the entire expression is in the file, if there is any rule for the given IP address then do not add the newOn Mon, 16 May 2022, Rolf Eike Beer wrote:
expression.
Series LGTM. However, "git am" fails for the second patch because the
line breaks in your message are messed up:
Applying: qmail.eclass: remove usage of egrep
error: corrupt patch at line 17
Patch failed at 0001 qmail.eclass: remove usage of egrep
(I believe the problem is not on my side, because I see the spurious
line breaks also in archives: https://archives.gentoo.org/gentoo-dev/message/b34c3f96f9e4069516b1457e7b0b4 904#L32 )
On Mon, 16 May 2022, Rolf Eike Beer wrote:
This does not use extended regular expressions in any way. While at it change the way these matches are done: it's irrelevant if the entire expression is in
the file, if there is any rule for the given IP address then do not add the new
expression.
On Sat, 21 May 2022, Rolf Eike Beer wrote:
You can get the patches directly from git here: https://github.com/DerDakon/gentoo/tree/qmail-eclass
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:44:09 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,880 |
Posted today: | 1 |