GNU bug report logs - #40656
Re-copying a folder results in 3 folders?

Previous Next

Package: coreutils;

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

Date: Thu, 16 Apr 2020 11:37:02 UTC

Severity: normal

To reply to this bug, email your comments to 40656 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#40656; Package coreutils. (Thu, 16 Apr 2020 11:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas <correo <at> tomaszubiri.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 16 Apr 2020 11:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomas <correo <at> tomaszubiri.com>
To: "bug-coreutils" <bug-coreutils <at> gnu.org>
Subject: Re-copying a folder results in 3 folders?
Date: Thu, 16 Apr 2020 07:08:48 -0300
[Message part 1 (text/plain, inline)]
Hello,



Here is a minimum example of the bug:


  #mkdir testcp

  #cd testcp

  #mkdir origin

  #touch origin/a

  #cp -r origin destination

  #cp -r origin destination



The expected result is:



#tree

├── destination

│   ├── a

└── origin

    └── a


or even this, who would I be to judge:



#tree

├── destination

│   └── origin

│       └── a

└── origin

    └── a


But this is unacceptable:



#tree

├── destination

│   ├── a

│   └── origin

│       └── a

└── origin

    └── a



The result is worse if you add a file in between copies. Now you would have 3 a files and 2 b files.

Thank you,
 Tomás
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 10 days ago.

Previous Next


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