Quote:
Originally Posted by lwasserm
I am confused by your examples. Are you actually using a
command line that looks like
Code:
cp -r source existing/non-existing/non-existing-destdir
or is that supposed to represent what you'd like the result to be?
Maybe there is something else going on here. Are any of the subdirectories that fail to get copied actually symlinks?
|
Yes that's the command line i'm using and it fails although it shouldn't , please try it out yourself
to illustrate :
"source" is the source directory to be copied
"existing/non-existing/non-existing-destdir" is the destination path where the first dir does exist while the last 2 do not !
"existing/non-existing/" is also the destination path however this example actually works as opposed to the above , this means that only one non-existing directory can be created ..... i see that as a bug since if one non-existing directory can be created by cp on the fly then why not an infinite number of dirs ?
in other words , i expect that cp creates all the non existing dirs in the provided dest dir argument with the last non-existing dir actually being the copied source dir (with it's contents of course)
besides commmands such as
Code:
mkdir -p existing/non-existing/......many non existing dirs...../non-existing
work without problems as expected
i hope this makes it clear