Re: Win32::GetShortPathName() does not always return a short name [DOC PATCH]
Gisle Aas [Mon, 10 Oct 2005 06:20:23 +0000 (23:20 -0700)]
Change to remove a call to Win32::GetShortPathName() from
Test::Harness::Straps.

p4raw-id: //depot/perl@25731

lib/Test/Harness/Straps.pm

index d561ea4..dc58a44 100644 (file)
@@ -358,7 +358,7 @@ sub _command {
     my $self = shift;
 
     return $ENV{HARNESS_PERL}           if defined $ENV{HARNESS_PERL};
-    return Win32::GetShortPathName($^X) if $self->{_is_win32};
+    return qq("$^X")    if $self->{_is_win32} && $^X =~ /[^\w\.\/\\]/;
     return $^X;
 }