#597889 wireless-tools: bash-completion for iwconfig rate has wrong escape

Package:
wireless-tools
Source:
wireless-tools
Description:
Tools for manipulating Linux Wireless Extensions
Submitter:
Patrick Strasser
Date:
2024-07-24 10:42:03 UTC
Severity:
minor
Tags:
#597889#5
Date:
2010-09-23 20:43:44 UTC
From:
To:
When trying a tab-comletion for iwconfig <interface> rate, I get an awk error:

# iwconfig wlan0 rate awk: /^[[:space:]]*[0-9]/ {print $1\"M\"}
awk:                               ^ backslash not last character on line
awk: /^[[:space:]]*[0-9]/ {print $1\"M\"}
awk:                               ^ backslash not last character on line

auto   fixed

removing the two superfluous backslashes gets me rid of the error. My wlan driver does not report rates, so  down*t know if it works right, but seems to be sane to me.