[Bash-completion-commits] [SCM] bash-completion branch, master, updated. ab74bd4da988e17665ac2769ddedf23980e05ee9

Ville Skyttä ville.skytta at iki.fi
Mon Nov 30 21:17:15 UTC 2009


The following commit has been merged in the master branch:
commit ab74bd4da988e17665ac2769ddedf23980e05ee9
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Nov 30 23:16:08 2009 +0200

    Redirect dcop/qdbus stderr to /dev/null.
    
    Even if we have e.g. dcop installed we may not have dcopserver running
    and providing completions.

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

-- 
bash-completion



More information about the Bash-completion-commits mailing list