1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 10:11:01 +00:00
uutils-coreutils/tests
hz2 cd2b56ea9c
cp: fix update prompting (#7668)
* added logic to check if we are updating the file and the destination is newer, to skip copying

* corrected logic to handle cp update

* - added test case that mocks the issue described in #7660
- adjusted conditions to satisfy clippy

* typo

* Update src/uu/cp/src/cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-04-10 19:00:39 +02:00
..
benches/factor chore: manual inline formatting 2025-04-08 00:23:21 -04:00
by-util cp: fix update prompting (#7668) 2025-04-10 19:00:39 +02:00
fixtures test_env: Try to execute an empty file instead of . 2025-03-23 19:37:59 +01:00
uutests chore: manual inline formatting 2025-04-08 00:23:21 -04:00
test_util_name.rs Merge pull request #7688 from nyurik/fmt-inline 2025-04-08 09:31:17 +02:00
tests.rs uutests: fix the doc 2025-03-29 09:28:54 +01:00