Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 13381
Status: resolved
Priority: 0/
Queue: Module-Build

Owner: Nobody in particular

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)

Subject: --install_base=~ is not translated to $ENV{HOME}
Download (untitled) / with headers
text/plain 742b
perl Build.PL --install_base=~ causes everything to be installed into a subdirectory literally called '~'. Even though this is not technically Module::Build's fault, its the shell, its very surprising and very dangerous as a user will instinctively do "rm -rf ~" and blow away their home directory. I nearly did so. MakeMaker expands ~ to $ENV{HOME} because of its shell-based nature. Module::Build should do the same with paths coming from the command line. A simple s/^~/$ENV{HOME}/, while it does not exactly emulate what the shell does, is close enough. The alternative is to issue a warning upon receiving a command line with a ~ at the front, but I feel this is not DWIM. When's the last time you wanted a path with a leading ~?
Isn't this fixed in CVS? -Ken
Download (untitled) / with headers
text/plain 141b
[KWILLIAMS - Wed Jun 22 20:20:38 2005]: Show quoted text
> Isn't this fixed in CVS?
Nope, the attempt to do so was not working. Its been fixed and tested.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to