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

Freddy Vulto fvulto at gmail.com
Wed Nov 3 19:02:13 UTC 2010


The following commit has been merged in the master branch:
commit dfb84064a46d5393c69cf3221b03c96caef5314a
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Wed Nov 3 19:55:38 2010 +0100

    Fix _tilde with new _compopt_o_filenames

diff --git a/bash_completion b/bash_completion
index de9daef..0e94b4d 100644
--- a/bash_completion
+++ b/bash_completion
@@ -789,6 +789,7 @@ _tilde() {
     local result=0
     # Does $1 start with tilde (~) and doesn't contain slash (/)?
     if [[ ${1:0:1} == "~" && $1 == ${1//\/} ]]; then
+        _compopt_o_filenames
         # Try generate username completions
         COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
         result=${#COMPREPLY[@]}

-- 
bash-completion



More information about the Bash-completion-commits mailing list