Skip to content

cp -r doesn't match linux when destination doesn't exist #101

@gdw2

Description

@gdw2

In linux, new_dir and existing_dir are now copies (new_dir didn't exist before):

$ mkdir existing_dir
$ touch existing_dir/foo
$ cp -rf existing_dir new_dir

With shelljs, new_dir/existing_dir and existing_dir are copies. I would expect the linux behavior.

cp('-rf', 'existing_dir', 'new_dir')

Metadata

Metadata

Assignees

Labels

duplicatefixBug/defect, or a fix for such a problem

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions