Hi,

I think the cp command behaves inconsistently.

Given the following directory structure....

/tmp/a/b/c
/tmp/x

.... the following 2 commands from within /tmp should produce the same result
in /tmp/x and /tmp/y

cp -a a x
cp -a a y

....but they don't. The result is:

/tmp/x/a/b/c
/tmp/y/b/c

If the target directory exists the command copies the source directory
itself and its contents into the target directory. If  the target directory
does not exist it is created but only the source directory's contents are
copied.

Regards,

Chris Robinson
Iceberg Software cc




_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to