Subject: bug#47151: closed (Re: bug#47151: cp --recursive funky behaviour)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 21 Feb 2022 09:55:03 +0000

Your bug report

#47151: cp --recursive funky behaviour

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
47151: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47151
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#47151: cp --recursive funky behaviour
From: Paul Eggert <[email-masked]>
To: Tomas <[email-masked]>
Cc: [email-masked]
Date: Mon, 21 Feb 2022 01:54:02 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: cp --recursive funky behaviour
From: Tomas <[email-masked]>
To: "bug-coreutils" <[email-masked]>
Date: Sun, 14 Mar 2021 21:47:05 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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