[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770

Igor Murzov igor at gplsoft.org
Mon May 2 10:26:57 UTC 2011


The following commit has been merged in the master branch:
commit ee78227c9c83488b9764b08f15f4b862fa9dbc34
Author: Igor Murzov <igor at gplsoft.org>
Date:   Mon May 24 23:08:11 2010 +0400

    Cleanup _pkgtool()

diff --git a/contrib/pkgtools b/contrib/pkgtools
index a25c350..31d52e7 100644
--- a/contrib/pkgtools
+++ b/contrib/pkgtools
@@ -14,9 +14,6 @@ _pkgtool()
 
     local prev=${COMP_WORDS[COMP_CWORD-1]}
 
-    local split=false
-    _split_longopt && split=true
-
     case $prev in
         --source_dir|--target_dir)
             _filedir -d
@@ -30,15 +27,15 @@ _pkgtool()
             COMPREPLY=( $( compgen -f -d -- "${cur:-/dev/}" ) )
             return 0
             ;;
+        --tagfile)
+            _filedir
+            return 0
+            ;;
     esac
 
-    $split && return 0
-
-    local IFS=$'\t\n'
-    COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \
-        $( compgen -d -- "$cur" ) )
+    return 0
 } &&
-complete -F _pkgtool -o filenames pkgtool
+complete -F _pkgtool pkgtool
 
 have removepkg && [ -f /etc/slackware-version ] &&
 _removepkg()

-- 
bash-completion



More information about the Bash-completion-commits mailing list