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

Full log


View this message in rfc822 format

From: Tomas <correo <at> tomaszubiri.com>
To: 40656 <at> debbugs.gnu.org
Subject: bug#40656: 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 5 years and 125 days ago.

Previous Next


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