Skip Menu |

This queue is for tickets about the Term-ReadLine-Perl CPAN distribution.

Report information
The Basics
Id: 8119
Status: open
Priority: 0/
Queue: Term-ReadLine-Perl

People
Owner: Nobody in particular
Requestors: preston [...] bannister.us
Cc:
AdminCc:

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



Subject: Use of $ENV{HOME} not useful on Win32
You cannot expect HOME to be set on Win32. You can use HOMEDRIVE and HOMEPATH together for the same purpose. The fix is simple (and portable): Compare: (<)C:\.cpan\build\Term-ReadLine-Perl-1.0203\ReadLine\readline.pm (116579 bytes) with: (>)C:\tools\perl\site\lib\Term\ReadLine\readline.pm (122074 bytes) 1330c1330 < $file = "$ENV{'HOME'}/.inputrc" unless defined $file; --- Show quoted text
> $file = ($ENV{'HOME'} || $ENV{'HOMEDRIVE'} . $ENV{'HOMEPATH'}) . "/.inputrc" unless defined $file;
From: ADAMK [...] cpan.org
File::HomeDir should be able to provide a proper HOME on all platforms now. I'd recommend you use that instead of $ENV{HOME}. It will also handle Mac OS X and other cases.
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #8119] Use of $ENV{HOME} not useful on Win32
Date: Mon, 27 Feb 2006 22:31:15 -0800
To: Guest via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Mon, Feb 27, 2006 at 08:44:21AM -0500, Guest via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=8119 > > > File::HomeDir should be able to provide a proper HOME on all platforms now.
Sorry, I have no idea what you mean by "now". Hope this helps, Ilya
On Tue Feb 28 01:33:10 2006, nospam-abuse@ilyaz.org wrote: Show quoted text
> On Mon, Feb 27, 2006 at 08:44:21AM -0500, Guest via RT wrote:
> > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=8119 > > > > > File::HomeDir should be able to provide a proper HOME on all
> platforms now. > > Sorry, I have no idea what you mean by "now".
The current version (0.54) of File::HomeDir.