CC: | nick [...] ccl4.org,steve.m.hay [...] googlemail.com |
Subject: | ExtUtils-Command cp returns success when the source is missing (on Win32) |
The command
perl -MExtUtils::Command -e cp foo bar
produces no errors or warnings, and the exit status in the shell is 0
(success), when 'foo' doesn't exist. Tested with bleadperl on Windows XP.
This caused considerable confusion during the recent changes to the
DynaLoader build process, in which a similar command to copy a missing
DynaLoader.obj file failed to alert us to the non-existence of the file.