Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix pattern in perl module completion
- X-seq: zsh-workers 29773
- From: Marco Hinz <mhi@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Fix pattern in perl module completion
- Date: Thu, 15 Sep 2011 11:03:04 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The current pattern for perl module completion misses some modules. A
colleague of mine did a short write-up about it:
http://blog.plenz.com/2011-09/debugging-a-zsh-completion-function.html
---
diff --git a/Completion/Unix/Type/_perl_modules b/Completion/Unix/Type/_perl_modules
index 26cab0c..1b61043 100644
--- a/Completion/Unix/Type/_perl_modules
+++ b/Completion/Unix/Type/_perl_modules
@@ -101,7 +101,7 @@ _perl_modules () {
# Find all modules
if [[ -d $libdir && -x $libdir ]]; then
- new_pms=( $libdir/{[A-Z]*/***/,}*${~sufpat}~*blib* )
+ new_pms=( $libdir/{[A-Za-z]*/***/,}*${~sufpat}~*blib* )
new_pms=( "${(@)new_pms##$libdir/##}" )
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author