From 745cece11e5f3f05578ce2373eb16f263f588696 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 29 Jan 2026 13:48:47 +0800 Subject: [PATCH] vstart: replace obsolescent egrep with grep -E The egrep command is deprecated in favor of grep -E. This change eliminates the "egrep is obsolescent" warning when running vstart.sh. Signed-off-by: Kefu Chai --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index c9f768c5a8e..fd8ab44c81c 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1662,7 +1662,7 @@ if [ -z "$CEPH_PORT" ]; then while [ true ] do CEPH_PORT="$(echo $(( RANDOM % 1000 + 40000 )))" - ss -a -n | egrep "\.+:${CEPH_PORT}\s+" 1>/dev/null 2>&1 || break + ss -a -n | grep -E "\.+:${CEPH_PORT}\s+" 1>/dev/null 2>&1 || break done fi -- 2.47.3