[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0529d738d2d912180af053b77bcb2894b0d79471
Freddy Vulto
fvulto at gmail.com
Thu Dec 10 20:37:14 UTC 2009
The following commit has been merged in the master branch:
commit 0529d738d2d912180af053b77bcb2894b0d79471
Author: Freddy Vulto <fvulto at gmail.com>
Date: Thu Dec 10 21:35:53 2009 +0100
Fix perl completion by removing : from wordbreaks
Specify colon (:) to be excluded as word separator character when doing
_get_cword().
diff --git a/contrib/perl b/contrib/perl
index 4041bcb..9a6c479 100644
--- a/contrib/perl
+++ b/contrib/perl
@@ -14,8 +14,8 @@ _perl()
local optPrefix optSuffix
COMPREPLY=()
- cur=`_get_cword`
- prev=${COMP_WORDS[COMP_CWORD-1]}
+ cur=`_get_cword :`
+ prev=`_get_pword :`
prefix=""
# If option not followed by whitespace, reassign prev and cur
@@ -55,8 +55,8 @@ _perldoc()
local cur prev prefix temp
COMPREPLY=()
- cur=`_get_cword`
- prev=${COMP_WORDS[COMP_CWORD-1]}
+ cur=`_get_cword :`
+ prev=`_get_pword :`
prefix=""
# completing an option (may or may not be separated by a space)
--
bash-completion
More information about the Bash-completion-commits
mailing list