* [PATCH] Use grep -E instead of egrep.
@ 2022-09-07 19:55 Martin Liška
2022-09-08 14:15 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2022-09-07 19:55 UTC (permalink / raw)
To: dwz
egrep is obsoleted starting with GNU Grep 3.8.
---
contrib/bytes-per-die.sh | 2 +-
testsuite/dwz.tests/two-files-low-mem-die-limit-0.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/bytes-per-die.sh b/contrib/bytes-per-die.sh
index 969f733..fda8998 100755
--- a/contrib/bytes-per-die.sh
+++ b/contrib/bytes-per-die.sh
@@ -3,7 +3,7 @@
f="$1"
size=$(readelf -WS "$f" \
- | egrep "[ \t]\.debug_info" \
+ | grep -E "[ \t]\.debug_info" \
| sed 's/.*\.debug_info//' \
| awk '{print $4}')
size=$((16#$size))
diff --git a/testsuite/dwz.tests/two-files-low-mem-die-limit-0.sh b/testsuite/dwz.tests/two-files-low-mem-die-limit-0.sh
index a3395a7..ee31359 100644
--- a/testsuite/dwz.tests/two-files-low-mem-die-limit-0.sh
+++ b/testsuite/dwz.tests/two-files-low-mem-die-limit-0.sh
@@ -8,7 +8,7 @@ $execs/dwz-for-test \
-j 1 \
2> dwz.err
-if egrep -q "Compressing (1|2)$" dwz.err; then
+if grep -Eq "Compressing (1|2)$" dwz.err; then
exit 1
fi
--
2.37.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Use grep -E instead of egrep.
2022-09-07 19:55 [PATCH] Use grep -E instead of egrep Martin Liška
@ 2022-09-08 14:15 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2022-09-08 14:15 UTC (permalink / raw)
To: dwz, Martin Liška; +Cc: Mark Wielaard
On Wed, 7 Sep 2022 21:55:03 +0200, Martin Liška wrote:
> egrep is obsoleted starting with GNU Grep 3.8.
>
Applied, thanks!
[1/1] Use grep -E instead of egrep.
commit: a57177980a05f0f84bf290ab7b68f73c0f78053f
Best regards,
--
Mark Wielaard <mark@klomp.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-08 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07 19:55 [PATCH] Use grep -E instead of egrep Martin Liška
2022-09-08 14:15 ` Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).