From: skaufman Date: Mon, 14 Apr 2014 17:06:19 +0000 (-0400) Subject: reverted previous commit, X-Git-Tag: v0.003003~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=commitdiff_plain;h=668343cde7e6339cca56c66a41defdd28327f224 reverted previous commit, would grep everything out of @INC due to faulty logic. haarg pointed out it'd be better to just quote -I arguments, so that's what this commit is. --- diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index d93f54c..594f281 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -16,9 +16,12 @@ sub stripspace { my %maybe_libs = map +($_ => 1), grep defined, (values %Config, '.'); -my @extra_libs = grep -e not(ref($_) or $maybe_libs{$_}), @INC; - -my $extra_libs = join '', map " -I$_\n", @extra_libs; +my @extra_libs = grep not(ref($_) or $maybe_libs{$_}), @INC; +my $extra_libs = join '', map { + my $lib = $_; + $lib =~ s{'}{'\\''}g; + " -I'$lib'\n"; +} @extra_libs; my $command = qq( $^X