GNU bug report logs - #47151
cp --recursive funky behaviour

Previous Next

Package: coreutils;

Reported by: Tomas <correo <at> tomaszubiri.com>

Date: Mon, 15 Mar 2021 00:59:01 UTC

Severity: normal

Tags: wontfix

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#47151: closed (cp --recursive funky behaviour)
Date: Mon, 21 Feb 2022 09:55:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 21 Feb 2022 01:54:02 -0800
with message-id <f2390683-e2fc-37ee-0917-3a342d9acb72 <at> cs.ucla.edu>
and subject line Re: bug#47151: cp --recursive funky behaviour
has caused the debbugs.gnu.org bug report #47151,
regarding cp --recursive funky behaviour
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
47151: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47151
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tomas <correo <at> tomaszubiri.com>
To: "bug-coreutils" <bug-coreutils <at> gnu.org>
Subject: cp --recursive funky behaviour
Date: Sun, 14 Mar 2021 21:47:05 -0300
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[grucp.png (image/png, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Tomas <correo <at> tomaszubiri.com>
Cc: 47151-done <at> debbugs.gnu.org
Subject: Re: bug#47151: cp --recursive funky behaviour
Date: Mon, 21 Feb 2022 01:54:02 -0800
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.


This bug report was last modified 3 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.