contrib/bash_completion
changeset 1888 283d2ab1e020
parent 1887 913397c27cd8
child 2034 5e7aff1b6ae1
equal deleted inserted replaced
1887:913397c27cd8 1888:283d2ab1e020
    13 }
    13 }
    14 
    14 
    15 
    15 
    16 _hg_commands()
    16 _hg_commands()
    17 {
    17 {
    18     local commands="$("$hg" debugcomplete "$cur")"
    18     local commands
       
    19     commands="$("$hg" debugcomplete "$cur" 2>/dev/null)" || commands=""
    19     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
    20     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur"))
    20 }
    21 }
    21 
    22 
    22 _hg_paths()
    23 _hg_paths()
    23 {
    24 {