Subject: | problems with directory with spaces in it |
Date: | Mon, 5 Aug 2013 12:58:31 -0700 |
To: | bug-local-lib [...] rt.cpan.org |
From: | Tatsuhiko Miyagawa <miyagawa [...] gmail.com> |
If you give a directory with a space in it, it seems local::lib
creates PERL_MM_OPT etc. with spaces unescaped, which leads to
problems like installing modules to a different directory.
Show quoted text
> perl -Mlocal::lib="/tmp/foo bar"
Attempting to create directory /tmp/foo bar
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/tmp/foo bar";
export PERL_MB_OPT="--install_base /tmp/foo bar";
export PERL_MM_OPT="INSTALL_BASE=/tmp/foo bar";
export PERL5LIB="/tmp/foo bar/lib/perl5:$PERL5LIB";
export PATH="/tmp/foo bar/bin:$PATH";
The original issue was
https://github.com/miyagawa/cpanminus/issues/298 (which was redirected
from another issue at carton).
I know spaces in directory names have its own woes with make, wget
etc. and add a warning when finding spaces in local::lib directory for
now.
--
Tatsuhiko Miyagawa