From 089526666300736e81d1f7aa70ad15056c9280ee Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 7 Sep 2022 13:54:43 +0200 Subject: [PATCH] iwconfig zsh completion: replace egrep usage with grep -E grep 3.8 deprecated support for egrep + fgrep, and now prints a warning on stderr: | egrep: warning: egrep is obsolescent; using grep -E | fgrep: warning: fgrep is obsolescent; using grep -F --- usr_share_grml/zsh/completion/linux/_iwconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr_share_grml/zsh/completion/linux/_iwconfig b/usr_share_grml/zsh/completion/linux/_iwconfig index 6731597..27e71ae 100644 --- a/usr_share_grml/zsh/completion/linux/_iwconfig +++ b/usr_share_grml/zsh/completion/linux/_iwconfig @@ -2,8 +2,8 @@ _wlan_interfaces() { local intf - intf=$(iwconfig |& egrep 'IEEE 802.11[abg]' | cut -d' ' -f1 | tr ' ' \\n ) - # intf=$( fgrep ': ' < /proc/net/wireless | cut -d: -f1 | tr \\n ' ' | tr -s " \t" ) + intf=$(iwconfig |& grep -E 'IEEE 802.11[abg]' | cut -d' ' -f1 | tr ' ' \\n ) + # intf=$( grep -F ': ' < /proc/net/wireless | cut -d: -f1 | tr \\n ' ' | tr -s " \t" ) _wanted interfaces expl 'wireless network interface' \ compadd ${intf} } -- 2.1.4