Bug 235435 - cp -R command not working properly
Summary: cp -R command not working properly
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-02 20:24 UTC by Ioannis Vranos
Modified: 2019-02-02 20:53 UTC (History)
0 users

See Also:


Attachments
It shows the cp -R directory bug (120.40 KB, image/png)
2019-02-02 20:24 UTC, Ioannis Vranos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.