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

Ville Skyttä ville.skytta at iki.fi
Fri Nov 19 20:14:13 UTC 2010


The following commit has been merged in the master branch:
commit 2f0948083da4392158f313db3f97cc33b7c446ff
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 19 21:57:38 2010 +0200

    Invoke perl module completion with the perl executable being completed.

diff --git a/completions/perl b/completions/perl
index 1e34fa3..baf8ea8 100644
--- a/completions/perl
+++ b/completions/perl
@@ -4,7 +4,7 @@ have perl &&
 {
 _perlmodules()
 {
-    COMPREPLY=( $( compgen -P "$prefix" -W "$( ${BASH_SOURCE[0]%/*}/helpers/perl modules $cur )" -- "$cur" ) )
+    COMPREPLY=( $( compgen -P "$prefix" -W "$( $1 ${BASH_SOURCE[0]%/*}/helpers/perl modules $cur )" -- "$cur" ) )
     __ltrim_colon_completions "$prefix$cur"
 }
 
@@ -41,7 +41,7 @@ _perl()
             return 0
             ;;
         -m|-M)
-            _perlmodules
+            _perlmodules $1
             return 0
             ;;
     esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list