fix CPAN.pm problem, OS2 tweaks
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / MM_OS2.pm
index 5a603ca..8bddb42 100644 (file)
@@ -43,6 +43,7 @@ sub replace_manpage_separator {
 
 sub maybe_command {
     my($self,$file) = @_;
+    $file =~ s,[/\\]+,/,g;
     return $file if -x $file && ! -d _;
     return "$file.exe" if -x "$file.exe" && ! -d _;
     return "$file.cmd" if -x "$file.cmd" && ! -d _;