Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Fix pattern in perl module completion



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