coreutils
[Top][All Lists]
Advanced

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

cp and --backup error


From: slash mais
Subject: cp and --backup error
Date: Fri, 16 Jun 2017 12:11:20 +0200

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.



reply via email to

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