develooper Front page | perl.perl5.porters | Postings from August 2009

RE: 5.10.1-RC1 Test::Harness ruins @INC

From:
Jan Dubois
Date:
August 11, 2009 15:32
Subject:
RE: 5.10.1-RC1 Test::Harness ruins @INC
Message ID:
02e801ca1ad3$93b08040$bb1180c0$@com
On Tue, 11 Aug 2009, Dave Mitchell wrote:
> On Tue, Aug 11, 2009 at 02:37:50PM +0100, Andy Armstrong wrote:
> > On 10 Aug 2009, at 10:05, sisyphus1@optusnet.com.au wrote:
> >>> Could you try the
> >>> fix I mention in the bug report and check if the missing entries will
> >>> reappear if the full path for $^X isn't mangled?
> >>
> >> Damn - I've been looking at that mangling of $^X a few times, as it's
> >> the only place that GetShortPathName() is called within the Test and
> >> TAP trees ... but I was too stupid to think of commenting out that line
> >> just to see what difference it makes :-(
> >
> > Sorry that I'm arriving late at this thread. I'll apply the appropriate
> > fix to Test::Harness.
> 
> Is that something that can or needs to be in 5.10.1 ?

If you are going to apply the change I'm going to commit to blead later, then
it doesn't matter anymore because Perl will auto-correct $^X and @INC
on startup. This change to win32/win32.c is more comprehensive because
it will cover not just Test-Harness, but any use case where Perl is invoked
with a (mangled) short pathname.

Cheers,
-Jan




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About