bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp command


From: Chris Robinson
Subject: cp command
Date: Fri, 28 Mar 2003 15:39:49 +0200

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]