Bug 235435

Summary: cp -R command not working properly
Product: Base System Reporter: Ioannis Vranos <ioannis.vranos>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Many People    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
It shows the cp -R directory bug none

Description Ioannis Vranos 2019-02-02 20:24:08 UTC
Created attachment 201652 [details]
It shows the cp -R directory bug

The command cp -R  has a bug when copying.


An example:

cp -R  Downloads/  Downloads

works correctly.


cp -R  Downloads  Downloads

produces a recursive copying, until it reaches some recursion limits.


See the screenshot attached.
Comment 1 Ioannis Vranos 2019-02-02 20:35:40 UTC
It should follow the Linux cp -R behaviour:

Create only one copy of the directory, in itself, and then quit.