Failure of cp comman?

Knute Johnson ubuntu at knutejohnson.com
Tue Apr 26 18:50:06 UTC 2011


On 04/26/2011 11:34 AM, Rodrigo López Dato wrote:
> On Tue, Apr 26, 2011 at 15:18, Knute Johnson<ubuntu at knutejohnson.com>  wrote:
>> My question is what happens to the cp command when an error such as this
>> occurs?  Does it stop copying files or does it continue to copy all files
>> that don't have errors?  I've looked at man cp and info but there isn't any
>> information on what happens when an error occurs.
>
> I just tried copying two test files to an SD card formatted with FAT I
> have lying around. They were called:
>
> ::.file
> test.file
>
> "cp -v *" failed to copy the file with the colons in it, but the other
> one copied just fine. In fact, the error for the first file comes up
> in the terminal before the second file is copied, meaning the copy
> process isn't aborted. I guess this means errors like this aren't
> fatal for cp.
>
> Hope this helps!
>

Thanks Rodrigo!

-- 

Knute Johnson
ubuntu at knutejohnson.com




More information about the ubuntu-users mailing list