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

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


The following commit has been merged in the master branch:
commit ee1374f70b3abee42ea8848e4ad296a46a0fc1ca
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 19 22:02:15 2010 +0200

    Add some perl option non-completions.

diff --git a/completions/perl b/completions/perl
index baf8ea8..0862a8c 100644
--- a/completions/perl
+++ b/completions/perl
@@ -32,8 +32,10 @@ _perl()
         prefix=$prev
     fi
 
-    # only handle module completion for now
     case $prev in
+        -D|-e|-E|-i|-F|-l)
+            return 0
+            ;;
         -I|-x)
             local IFS=$'\n'
             _compopt_o_filenames
diff --git a/test/lib/completions/perl.exp b/test/lib/completions/perl.exp
index 906433d..82a95bc 100644
--- a/test/lib/completions/perl.exp
+++ b/test/lib/completions/perl.exp
@@ -91,6 +91,9 @@ assert_complete $options "perl -"
 
 sync_after_int
 
+assert_no_complete "perl -e "
+sync_after_int
+
 # Assuming that File::Spec and friends are always installed...
 
 assert_complete_any "perl -MFile"

-- 
bash-completion



More information about the Bash-completion-commits mailing list