Ville Skyttä 9793c2
diff -up bash-completion-1.3/completions/perl~ bash-completion-1.3/completions/perl
Ville Skyttä 9793c2
--- bash-completion-1.3/completions/perl~	2011-01-21 11:36:11.000000000 +0200
Ville Skyttä 9793c2
+++ bash-completion-1.3/completions/perl	2011-02-07 21:24:10.050008940 +0200
Ville Skyttä 9793c2
@@ -4,13 +4,13 @@ have perl &&
Ville Skyttä 9793c2
 {
Ville Skyttä 9793c2
 _perlmodules()
Ville Skyttä 9793c2
 {
Ville Skyttä 9793c2
-    COMPREPLY=( $( compgen -P "$prefix" -W "$( $1 ${BASH_SOURCE[0]%/*}/helpers/perl modules $cur )" -- "$cur" ) )
Ville Skyttä 9793c2
+    COMPREPLY=( $( compgen -P "$prefix" -W "$( $1 $(dirname $(readlink -f ${BASH_SOURCE[0]}))/helpers/perl modules $cur )" -- "$cur" ) )
Ville Skyttä 9793c2
     __ltrim_colon_completions "$prefix$cur"
Ville Skyttä 9793c2
 }
Ville Skyttä 9793c2
 
Ville Skyttä 9793c2
 _perlfunctions()
Ville Skyttä 9793c2
 {
Ville Skyttä 9793c2
-    COMPREPLY=( $( compgen -P "$prefix" -W "$( ${BASH_SOURCE[0]%/*}/helpers/perl functions $cur )" -- "$cur" ) )
Ville Skyttä 9793c2
+    COMPREPLY=( $( compgen -P "$prefix" -W "$( $(dirname $(readlink -f ${BASH_SOURCE[0]}))/helpers/perl functions $cur )" -- "$cur" ) )
Ville Skyttä 9793c2
 }
Ville Skyttä 9793c2
 
Ville Skyttä 9793c2
 _perl()