[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.1-18-g97efc7c
Ville Skyttä
ville.skytta at iki.fi
Sun Jun 2 21:22:31 UTC 2013
The following commit has been merged in the master branch:
commit 97efc7ca08f22043ce5c55f41ac093de9c7ca082
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Jun 3 00:22:19 2013 +0300
perl: Fix -dt: completion.
diff --git a/completions/perl b/completions/perl
index f41a309..ae33c4d 100644
--- a/completions/perl
+++ b/completions/perl
@@ -27,6 +27,10 @@ _perl()
temp=$cur
prev=${temp:0:2}
cur=${temp:2}
+ if [[ $prev == -d && $cur == t* ]]; then
+ prev=-dt
+ cur=${cur:1}
+ fi
optPrefix=-P$prev
optSuffix=-S/
prefix=$prev
diff --git a/test/lib/completions/perl.exp b/test/lib/completions/perl.exp
index f3a5184..bad40d8 100644
--- a/test/lib/completions/perl.exp
+++ b/test/lib/completions/perl.exp
@@ -117,4 +117,10 @@ sync_after_int
assert_complete_any "perl -m-File::"
sync_after_int
+assert_complete_any "perl -d:"
+sync_after_int
+
+assert_complete_any "perl -dt:"
+sync_after_int
+
teardown
--
bash-completion
More information about the Bash-completion-commits
mailing list