cp -R incorrectly copies a directory when the path ends in a dot.
GNU cp v8.30:
mkdir x y
cd y
cp -R ../x/. . # succeeds and does *not* copy x/ into y/
uutils cp:
mkdir x y
cd y
../target/debug/cp -R ../x/. . # succeeds and *does* copy x/ into y/
The corresponding GNU test case is tests/cp/src-base-dot.sh. This test is incorrectly marked as passing on the main branch because the GNU test case doesn't actually verify that the directory x/ is not copied to y/.
Originally mentioned by @jfinkels in #3894 (comment)
cp -Rincorrectly copies a directory when the path ends in a dot.GNU cp v8.30:
uutils cp:
The corresponding GNU test case is
tests/cp/src-base-dot.sh. This test is incorrectly marked as passing on the main branch because the GNU test case doesn't actually verify that the directoryx/is not copied toy/.Originally mentioned by @jfinkels in #3894 (comment)