X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=598366c1c0d79fd8d3664e62b7e84d6cabe77a86;hb=refs%2Fheads%2Fwin32;hp=45332d542b6f7f31b7029db7396ef2c2e33d6354;hpb=1bf553077ee5e7d9fd912783384e442165062f14;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 45332d5..598366c 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -18,14 +18,15 @@ my %maybe_libs = map +($_ => 1), grep defined, (values %Config, '.'); my @extra_libs = grep not(ref($_) or $maybe_libs{$_}), @INC; -my $extra_libs = join '', map " -I$_\n", @extra_libs; +my $extra_libs = join '', map qq[ -I"$_"\n], @extra_libs; +my $perl_quote = $^O eq "MSWin32" ? q["] : q[']; my $command = qq( $^X $extra_libs -mObject::Remote -mObject::Remote::Connector::STDIO - -mCPS::Future + -mFuture -mMRO::Compat -mClass::C3 -mClass::C3::next @@ -35,7 +36,7 @@ my $command = qq( -mMethod::Generate::BuildAll -mMethod::Generate::DemolishAll -mJSON::PP - -e 'print join "\\n", \%INC' + -e $perl_quote print join qq[\\n], \%INC $perl_quote ); $command =~ s/\n/ /g;