diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -84,6 +84,7 @@ shopt -s extglob { local files="$(_hg_cmd status -n$1 .)" local IFS=$'\n' + compopt -o filenames 2>/dev/null COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) }