From fa34e9499c54626b56b723e180a449d8ab50db0e Mon Sep 17 00:00:00 2001 From: panzhe0328 Date: Thu, 27 Nov 2025 16:56:56 +0800 Subject: [PATCH] bench: Resolved the problem with deprecated command. The egrep command has been deprecated since grep-2.5.3(2007), it should be replaced by grep -E --- Makefile.com | 2 +- bench | 2 +- bench.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.com b/Makefile.com index 61f2684..2364779 100644 --- a/Makefile.com +++ b/Makefile.com @@ -38,7 +38,7 @@ EXTRA_CFILES= \ # # some definitions to make getting compiler versions possible - avoid quotes # -COMPILER_VERSION_CMD_cc=cc -V 2>&1 | egrep Sun +COMPILER_VERSION_CMD_cc=cc -V 2>&1 | grep -E Sun COMPILER_VERSION_CMD_gcc=gcc -dumpversion COMPILER_VERSION_CMD=$(COMPILER_VERSION_CMD_$(CC)) diff --git a/bench b/bench index b700704..487a5b1 100755 --- a/bench +++ b/bench @@ -78,7 +78,7 @@ if [ -f /usr/sbin/psrinfo ]; then fi if [ -f /proc/cpuinfo ]; then - p_count=`egrep processor /proc/cpuinfo | wc -l` + p_count=`grep -E processor /proc/cpuinfo | wc -l` p_mhz=`awk -F: '/cpu MHz/{printf("%5.0f00Mhz\n",$2/100); exit}' /proc/cpuinfo` p_type=`awk -F: '/model name/{print $2; exit}' /proc/cpuinfo` fi diff --git a/bench.sh b/bench.sh index 7aba977..e01f718 100644 --- a/bench.sh +++ b/bench.sh @@ -78,7 +78,7 @@ if [ -f /usr/sbin/psrinfo ]; then fi if [ -f /proc/cpuinfo ]; then - p_count=`egrep processor /proc/cpuinfo | wc -l` + p_count=`grep -E processor /proc/cpuinfo | wc -l` p_mhz=`awk -F: '/cpu MHz/{printf("%5.0f00Mhz\n",$2/100); exit}' /proc/cpuinfo` p_type=`awk -F: '/model name/{print $2; exit}' /proc/cpuinfo` fi