]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
egrep is deprecated
authorSimon Deziel <simon@sdeziel.info>
Wed, 23 Mar 2022 17:31:31 +0000 (13:31 -0400)
committerLukas Schauer <lukas@schauer.dev>
Thu, 7 Apr 2022 19:49:56 +0000 (21:49 +0200)
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>
dehydrated

index 9474d77c2675fa5954360ab71f4ebac0d5f5fffa..121c8e347b7f9ba0fe03348a0d3ebb8858d7b810 100755 (executable)
@@ -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:]"\\]'