bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40656: Re-copying a folder results in 3 folders?


From: Tomas
Subject: bug#40656: Re-copying a folder results in 3 folders?
Date: Thu, 16 Apr 2020 07:08:48 -0300
User-agent: Zoho Mail

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]