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:
Ville Skyttä 2010-01-03 23:56:40 +02:00
parent 77dee3a323
commit 4ec77ce531
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ bash-completion (2.x)
input in external command arguments (Debian: 552631). input in external command arguments (Debian: 552631).
* Add /sbin to $PATH when invoking ifconfig and iwconfig. * Add /sbin to $PATH when invoking ifconfig and iwconfig.
* Combine dcop and qdbus completions into the latter. * 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. * Fix leaking local variables from various completions.
* Turn on -o filenames in _filedir on bash >= 4. * Turn on -o filenames in _filedir on bash >= 4.
* Deprecate modules completion, upstream modules >= 3.2.7 ships one. * Deprecate modules completion, upstream modules >= 3.2.7 ships one.

View File

@ -12,7 +12,7 @@ _heimdal_realms()
{ {
COMPREPLY=( $( compgen -W "( kadmin -l dump 2>/dev/null | \ 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() _heimdal_encodings()

View File

@ -23,7 +23,7 @@ _iwconfig()
if [ -n "${COMP_IWLIST_SCAN:-}" ]; then if [ -n "${COMP_IWLIST_SCAN:-}" ]; then
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \ COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
"$( iwlist ${COMP_WORDS[1]} scan | \ "$( iwlist ${COMP_WORDS[1]} scan | \
awk -F '\"' '/ESSID/ {print $2}' )" -- "$cur" ) ) awk -F'\"' '/ESSID/ {print $2}' )" -- "$cur" ) )
fi fi
return 0 return 0
;; ;;