Subject: | Moo-2.002002 fails to build due to hard coded directory separator |
Date: | Tue, 21 Jun 2016 16:03:58 -0400 |
To: | bug-Moo [...] rt.cpan.org |
From: | "A. Sinan Unur" <nanis [...] cpan.org> |
I get this:
C:\...\Moo-2.002002> nmake test
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\opt\perl\5.24.0\bin\perl.exe" -It/lib -MTestEnv=
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
*Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')"
t\*.t
Can't open perl script "/lib": No such file or directory
NMAKE : fatal error U1077: 'C:\opt\perl\5.24.0\bin\perl.exe' : return code '0x2'
Stop.
The offending shell command is generated in `sub test_via_harness`.
While Windows APIs are indifferent as to whether one uses / or \ to
separate directory names in paths, / can be misinterpreted as the
start of a command line argument when arguments are passed through a
shell.
HTH
-- Sinan