When checking if there's a VMS directory spec, don't forget the possible device
[openssl.git] / test / testlib / OpenSSL / Test.pm
index e1c2899c7edf10ff9a1922cf787075867fd84d0e..297de8642fad6b17f0d92dc012c0db63cca1188b 100644 (file)
@@ -713,7 +713,7 @@ sub __fixup_cmd {
     if (defined($exe_shell)) {
        $prefix = "$exe_shell ";
     } elsif ($^O eq "VMS" ) {  # VMS
-       $prefix = ($prog =~ /^[<\[]/ ? "mcr " : "mcr []");
+       $prefix = ($prog =~ /^(?:[\$a-z0-9_]+:)?[<\[]/i ? "mcr " : "mcr []");
        $ext = ".exe";
     } elsif ($^O eq "MSWin32") { # Windows
        $prefix = "";