git: e27ded83c76a - main - freebsd-update: use grep -E instead of egrep
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Mar 2023 23:59:28 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=e27ded83c76a609687a3d9e82b80fe7e1b782bf6
commit e27ded83c76a609687a3d9e82b80fe7e1b782bf6
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-03-02 23:54:52 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-03-02 23:58:58 +0000
freebsd-update: use grep -E instead of egrep
GNU egrep emits a warning that it is obsolescent and suggests grep -E
instead. Switch to grep -E in case we end up invoking GNU (e)grep (and
for consistency with other invocations in this file).
Reported by: Steffen Nurpmeso
Sponsored by: The FreeBSD Foundation
---
usr.sbin/freebsd-update/freebsd-update.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 225d1e31e3ec..4ef44d1ad000 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -2547,7 +2547,7 @@ manually...
read dummy </dev/tty
${EDITOR} `pwd`/merge/new/${F} < /dev/tty
- if ! egrep -q '^(<<<<<<<|=======|>>>>>>>)([[:space:]].*)?$' $(pwd)/merge/new/${F} ; then
+ if ! grep -qE '^(<<<<<<<|=======|>>>>>>>)([[:space:]].*)?$' $(pwd)/merge/new/${F} ; then
break
fi
cat <<-EOF