From: Kefu Chai Date: Thu, 29 Jan 2026 05:48:47 +0000 (+0800) Subject: vstart: replace obsolescent egrep with grep -E X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=745cece11e5f3f05578ce2373eb16f263f588696;p=ceph.git 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 --- diff --git a/src/vstart.sh b/src/vstart.sh index c9f768c5a8e2..fd8ab44c81cb 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