contrib/bash_completion
changeset 1888 283d2ab1e020
parent 1887 913397c27cd8
child 2034 5e7aff1b6ae1
--- a/contrib/bash_completion	Sun Mar 12 11:32:03 2006 +0100
+++ b/contrib/bash_completion	Sun Mar 12 12:29:03 2006 +0100
@@ -15,7 +15,8 @@
 
 _hg_commands()
 {
-    local commands="$("$hg" debugcomplete "$cur")"
+    local commands
+    commands="$("$hg" debugcomplete "$cur" 2>/dev/null)" || commands=""
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
 }