Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 17759
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.85
Fixed in: (no value)



Subject: MyConfig feature uses $ENV{HOME} which is not compatible with Win32
The MyConfig feature makes use of $ENV{HOME} Unfortunately, the HOME environment variable does not exist on Windows. There, finding your home directory is a little more complicated. Ideally, ignoring dependency issues, what you probably want is File::Spec->catdir( File::HomeDir->my_data, '.cpan' )
Subject: Re: [rt.cpan.org #17759] MyConfig feature uses $ENV{HOME} which is not compatible with Win32
Date: Mon, 20 Feb 2006 21:46:05 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Mon, 20 Feb 2006 12:46:45 -0500 (EST), " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Mon Feb 20 12:46:45 2006: Request 17759 was acted upon. > Transaction: Ticket created by ADAMK > Queue: CPAN > Subject: MyConfig feature uses $ENV{HOME} which is not compatible with Win32 > Owner: Nobody > Requestors: ADAMK@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=17759 >
Show quoted text
> The MyConfig feature makes use of $ENV{HOME}
Show quoted text
> Unfortunately, the HOME environment variable does not exist on Windows.
Show quoted text
> There, finding your home directory is a little more complicated.
Show quoted text
> Ideally, ignoring dependency issues, what you probably want is
Show quoted text
> File::Spec->catdir( File::HomeDir->my_data, '.cpan' )
No problem, I'd put File:HomeDir into the Bundle::CPAN and replace he 4 places where $ENV{HOME} is used with your alternative. Experimental checkin as rev. 641 -- andreas