On 3/14/21 17:47, Tomas wrote:
cd /tmp
mkdir src
touch src/a
cp -r src dest

#damn, I forgot a file
touch src/b
cp -r src dest
ls dest
# a dest

cp has behaved that way for ages, and is required to behave that way by POSIX, so this is not a bug. To sidestep the issue, you can use the -T option of GNU cp. Closing the bug report.



Reply via email to