]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
Use `grep -E` instead of `egrep`
authorVille Skyttä <ville.skytta@iki.fi>
Fri, 12 Nov 2021 22:06:22 +0000 (00:06 +0200)
committerVille Skyttä <ville.skytta@iki.fi>
Fri, 12 Nov 2021 22:26:15 +0000 (00:26 +0200)
`egrep` has been deprecated in GNU grep since 2007, and in current
post 3.7 Git it has been made to emit obsolescence warnings:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1

vpnc-script

index 113b6284bccc6fe93644e1167d67860252fb8c3c..012a406356622017ced49356e0b52174310664c1 100755 (executable)
@@ -78,7 +78,7 @@
 
 #TRACE# echo "------------------"
 #TRACE# echo "vpnc-script environment:"
-#TRACE# env | egrep '^(CISCO_|INTERNAL_IP|VPNGATEWAY|TUNDEV|IDLE_TIMEOUT|reason)' | sort
+#TRACE# env | grep -E '^(CISCO_|INTERNAL_IP|VPNGATEWAY|TUNDEV|IDLE_TIMEOUT|reason)' | sort
 #TRACE# echo "------------------"
 #TRACE# set -x