egrep is deprecated

egrep has been deprecated since 2007 and warns it's obsolete since:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1

Signed-off-by: Simon Deziel <simon@sdeziel.info>
This commit is contained in:
Simon Deziel
2022-03-23 13:31:31 -04:00
committed by Lukas Schauer
parent 7128e6b63c
commit 19c7fbbf47

View File

@@ -126,7 +126,7 @@ jsonsh() {
fi
# shellcheck disable=SC2196
if echo "test string" | egrep -ao "test" >/dev/null 2>&1
if echo "test string" | grep -Eao "test" >/dev/null 2>&1
then
ESCAPE='(\\[^u[:cntrl:]]|\\u[0-9a-fA-F]{4})'
CHAR='[^[:cntrl:]"\\]'