[Bash-completion-devel] correcting java completion

Mattias Ulbrich ulbrich at kit.edu
Wed Apr 6 12:24:03 UTC 2011


Hi!

Thanks for applying my patch the other day.
I got another (simple) one.

Currently, class names are not correctly completed if the classpath
contains more than one entity, like in
   java -cp A:B ...

Here, only classes from path A are taken into consideration. (Same
applies to source path)

This is due to the fact that the class path detection (_java_classpath)
does not use the corrected COMP_WORDS array (with the ':'-separated
tokens reassembled) but the original one.

The attached patch should amend this.

Regards,
   Mattias

-- 
Mattias Ulbrich <ulbrich at kit.edu>
Logik und Formale Methoden (Prof. Dr. P.H. Schmitt)
Institut für Theoretische Informatik   lfm.iti.kit.edu
KIT - Karlsruher Institut für Technologie  www.kit.edu



More information about the Bash-completion-devel mailing list