From 82c6e22fb1602177940f00ac9888bac67fcbf287 Mon Sep 17 00:00:00 2001 From: Matthew Hughes Date: Thu, 25 Jan 2024 20:02:11 +0000 Subject: [PATCH] Use `grep -E` over `egrep` `egrep` has been deprecated in GNU grep since version 2.5.3 (2007) and since version 3.8 emits a warning[1] > egrep: warning: egrep is obsolescent; using grep -E Avoid this warning by following its suggestion. [1] https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html --- bin/vimlint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/vimlint.sh b/bin/vimlint.sh index 77fedc0..895e188 100755 --- a/bin/vimlint.sh +++ b/bin/vimlint.sh @@ -103,10 +103,10 @@ while [ $# -gt 0 ]; do VIM="$VIMLINT_VIM $VOPT -es -N -c 'call vimlint#vimlint(\"$1\", {\"output\": \"${TF}\"})' -c 'qall!'" eval "${VIM}" || exit if [ ${VERBOSE} = 0 ]; then - egrep -a -w "${ERRGREP}" "$TF" && RET=2 + grep -E -a -w "${ERRGREP}" "$TF" && RET=2 else cat "${TF}" - egrep -a -w "${ERRGREP}" "$TF" > /dev/null 2>&1 + grep -E -a -w "${ERRGREP}" "$TF" > /dev/null 2>&1 if [ $? = 0 ]; then RET=2 fi