Project

General

Profile

Bug #383

cp command does not work properly with special file types or the `yes y` | cp -i syntax

Added by Samuel Younge almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2010-10-31
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

cp command does not work properly with special file types. The default behavior of the cp command should be similar to the following command: `find . -depth -print | cpio -pdm destinationDirectoryPath` this should be equivalent to `cp . destinationDirectoryPath` currently the prior cp command will behave strangely if source directory contains special file types.

Also, cp command does not work using the interrogative switch with the yes command piped in.
For example, the following command should copy all files in the current directory to the destination directory without replacing any existing files: `yes no | cp -i . destinationDirectoryPath` currently the command goes berserk if you use this syntax, forcing you to repeatedly enter `no` if you want this behavior.

Also available in: Atom PDF