From 3aad70326db4b654c836be97f7b96bb71e10202a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 10 Nov 2021 16:30:50 +0100 Subject: [PATCH] Use "grep -E" instead of deprecated "egrep" * admin/emake: * test/lisp/so-long-tests/so-long-tests.el: Use "grep -E" instead of deprecated "egrep". --- admin/emake | 6 +++--- test/lisp/so-long-tests/so-long-tests.el | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/emake b/admin/emake index 8c37c160555..2ff553289da 100755 --- a/admin/emake +++ b/admin/emake @@ -13,7 +13,7 @@ cores=1 # Determine the number of cores. if [ -f /proc/cpuinfo ]; then - cores=$(($(egrep "^physical id|^cpu cores" /proc/cpuinfo |\ + cores=$(($(grep -E "^physical id|^cpu cores" /proc/cpuinfo |\ awk '{ print $4; }' |\ sed '$!N;s/\n/ /' |\ uniq |\ @@ -30,7 +30,7 @@ s#^Configured for # Configured for # s#^./temacs.*# \\& # s#^make.*Error# \\& # ' | \ -egrep --line-buffered -v "^make|\ +grep -E --line-buffered -v "^make|\ ^Loading|\ SCRAPE|\ INFO.*Scraping.*[.] ?\$|\ @@ -93,4 +93,4 @@ done # changed since last time. make -j$cores check-maybe 2>&1 | \ sed -n '/contained unexpected results/,$p' | \ - egrep --line-buffered -v "^make" + grep -E --line-buffered -v "^make" diff --git a/test/lisp/so-long-tests/so-long-tests.el b/test/lisp/so-long-tests/so-long-tests.el index 7eee345aadd..cda5ae497fd 100644 --- a/test/lisp/so-long-tests/so-long-tests.el +++ b/test/lisp/so-long-tests/so-long-tests.el @@ -32,7 +32,7 @@ ;; Running manually: ;; ;; for test in lisp/so-long-tests/*-tests.el; do make ${test%.el}; done \ -;; 2>&1 | egrep -v '^(Loading|Source file|make|Changed to so-long-mode)' +;; 2>&1 | grep -E -v '^(Loading|Source file|make|Changed to so-long-mode)' ;; ;; Which is equivalent to: ;; @@ -41,7 +41,7 @@ ;; "../src/emacs" --no-init-file --no-site-file --no-site-lisp \ ;; -L ":." -l ert -l "$test" --batch --eval \ ;; '(ert-run-tests-batch-and-exit (quote (not (tag :unstable))))'; \ -;; done 2>&1 | egrep -v '^(Loading|Source file|Changed to so-long-mode)' +;; done 2>&1 | grep -E -v '^(Loading|Source file|Changed to so-long-mode)' ;; ;; See also `ert-run-tests-batch-and-exit'. -- 2.39.5