public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: dwz@sourceware.org
Subject: [PATCH] Use grep -E instead of egrep.
Date: Wed, 7 Sep 2022 21:55:03 +0200	[thread overview]
Message-ID: <a2bf576d-3598-385d-2139-cae0d4f11074@suse.cz> (raw)

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


             reply	other threads:[~2022-09-07 19:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 19:55 Martin Liška [this message]
2022-09-08 14:15 ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a2bf576d-3598-385d-2139-cae0d4f11074@suse.cz \
    --to=mliska@suse.cz \
    --cc=dwz@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).