The following commit has been merged in the master branch:
commit 2f0948083da4392158f313db3f97cc33b7c446ff
Author: Ville Skyttä <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to