[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-432-g8ec5519

Ville Skyttä ville.skytta at iki.fi
Wed Sep 21 18:24:15 UTC 2011


The following commit has been merged in the master branch:
commit 8ec55193de633332cfe66efaae8d1a33ab2bde31
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Sep 21 21:23:20 2011 +0300

    ant: Don't use complete-ant-cmd.pl unless it's in default $PATH.

diff --git a/completions/ant b/completions/ant
index 80f8de6..4ba13ab 100644
--- a/completions/ant
+++ b/completions/ant
@@ -59,7 +59,7 @@ _ant()
         COMPREPLY=( $( compgen -W '$targets' -- "$cur" ) )
     fi
 } &&
-have ant && { have complete-ant-cmd.pl && \
+have ant && { type complete-ant-cmd.pl &>/dev/null && \
     complete -C complete-ant-cmd.pl -F _ant ant || complete -F _ant ant; }
 have phing && complete -F _ant phing
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list