Re: testing files for read errors by copying to /dev/null
* Charles Russell <NOSPAM@bellsouth.net>:
> James Michael Fultz wrote:
>> $ find /cygdrive/d -type f -exec cp -v {} /dev/null \;
>>
>
> That yields the error message:
> cp: cannot create regular file `/dev/null': Invalid request code
>
> I don't know whether this is typical unix behavior or something peculiar
> to Cygwin, which is usually a pretty close emulation. As noted in my
> original posting, cp does not like /dev/null.
My thought is that it is a pecularity of Cygwin since it worked when I
tested on Linux.
Your cp command lines seemed to fail for different reasons which are
also failures on Linux. It is possible to copy a single file onto
'/dev/null' which is itself a file, but it is not possible to copy
directories onto '/dev/null' as the '-r' would require cp to do.
--
James Michael Fultz <xyzzy@sent.as.invalid>
Remove this part when replying ^^^^^^^^
|