[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.1-17-g18c28bb

Ville Skyttä ville.skytta at iki.fi
Sun May 19 19:37:48 UTC 2013


The following commit has been merged in the master branch:
commit 18c28bb9a2147e662755e393d1ec39f270948d30
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun May 19 22:32:56 2013 +0300

    perl*: Fix handling of relative paths in @INC.

diff --git a/helpers/perl b/helpers/perl
index f847dc7..8d44235 100644
--- a/helpers/perl
+++ b/helpers/perl
@@ -2,6 +2,7 @@
 
 use strict;
 use Config;
+use Cwd;
 use File::Spec::Functions;
 
 my %seen;
@@ -47,8 +48,10 @@ sub print_modules_real {
 sub print_modules {
     my ($word) = @_;
 
+    my $origdir = getcwd;
     foreach my $directory (@INC) {
         print_modules_real(undef, $directory, $word);
+        chdir $origdir;
     }
 }
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list