X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=usr_share_grml%2Fzsh%2Fcompletion%2Flinux%2F_iwconfig;h=27e71aed44ebfd1e447fdcde34c5f9c3d334e293;hb=089526666300736e81d1f7aa70ad15056c9280ee;hp=6731597c02443f21c8c64645b0ab8bbd973034d7;hpb=3e1e13d239462a0a0d470ab0e57f5c77bae241c2;p=grml-etc-core.git 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} }