Redirect dcop/qdbus stderr to /dev/null.

Even if we have e.g. dcop installed we may not have dcopserver running
and providing completions.
This commit is contained in:
Ville Skyttä 2009-11-30 23:16:08 +02:00
parent a6f79a9a69
commit ab74bd4da9

View File

@ -8,8 +8,8 @@ _qdbus()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1] [ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \ COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \
-- "$cur" ) ) sed s/\(.*\)// )' -- "$cur" ) )
} && } &&
complete -F _qdbus qdbus dcop complete -F _qdbus qdbus dcop