On Fri, Jun 16, 2017 at 3:11 AM, slash mais <[email protected]> wrote:
> The command:
>         cp -r -P --preserve=all --strip-trailing-slashes --backup=numbered
> "/source-dir/source-file" "/source-dir/"
> returns:
>         cp: ‘/source-dir/source-file’ and ‘/source-dir/source-file’ are the 
> same file
>
> This result is wrong because '--backup' has been specified, and 'cp'
> should do the backup and copy actions regardless in this case.

If you really want to do that, you must also specify the -f (--force) option.

Reply via email to