awk usage portability fixes.
Some versions of Solaris awk don't like a space between -F and the separator char (and the char really must be a char, it can't be an ERE, but that's something for another patch).
This commit is contained in:
parent
77dee3a323
commit
4ec77ce531
2
CHANGES
2
CHANGES
@ -45,7 +45,7 @@ bash-completion (2.x)
|
||||
input in external command arguments (Debian: 552631).
|
||||
* Add /sbin to $PATH when invoking ifconfig and iwconfig.
|
||||
* Combine dcop and qdbus completions into the latter.
|
||||
* sed usage portability fixes.
|
||||
* awk and sed usage portability fixes.
|
||||
* Fix leaking local variables from various completions.
|
||||
* Turn on -o filenames in _filedir on bash >= 4.
|
||||
* Deprecate modules completion, upstream modules >= 3.2.7 ships one.
|
||||
|
@ -12,7 +12,7 @@ _heimdal_realms()
|
||||
{
|
||||
|
||||
COMPREPLY=( $( compgen -W "( kadmin -l dump 2>/dev/null | \
|
||||
awk '{print $1}' | awk -F @ '{print $2}' )" -- "$cur" ) )
|
||||
awk '{print $1}' | awk -F@ '{print $2}' )" -- "$cur" ) )
|
||||
}
|
||||
|
||||
_heimdal_encodings()
|
||||
|
@ -23,7 +23,7 @@ _iwconfig()
|
||||
if [ -n "${COMP_IWLIST_SCAN:-}" ]; then
|
||||
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
|
||||
"$( iwlist ${COMP_WORDS[1]} scan | \
|
||||
awk -F '\"' '/ESSID/ {print $2}' )" -- "$cur" ) )
|
||||
awk -F'\"' '/ESSID/ {print $2}' )" -- "$cur" ) )
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user