Failure of cp comman?
Rodrigo López Dato
rlopezdato at gmail.com
Tue Apr 26 18:34:44 UTC 2011
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!
More information about the ubuntu-users
mailing list