mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
fbed01dd54
Fix the behavior of `cp` when both `--backup` and `--force` are specified and the source and destination are the same file. Before this commit, `cp` terminated without copying and without making a backup. After this commit, the copy is made and the backup file is made. For example, $ touch f $ cp --force --backup f f results in a backup file `f~` being created. |
||
---|---|---|
.. | ||
benches/factor | ||
by-util | ||
common | ||
fixtures | ||
test_util_name.rs | ||
tests.rs |