Bug 53884 - cp returns error code if non-recursive copy encounters dir
Summary: cp returns error code if non-recursive copy encounters dir
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: fileutils
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Aaron Brown
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-20 19:02 UTC by Need Real Name
Modified: 2007-04-18 16:37 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2002-01-24 22:50:58 UTC


Attachments (Terms of Use)

Description Need Real Name 2001-09-20 19:02:00 UTC
Description of Problem:
cp returns an error code when encountering a directory in a non-recursive
copy;

Version-Release number of selected component (if applicable):


How Reproducible:
mkdir a
mkdir a/b
mkdir a/b/c
mkdir d
touch a/b/foo
cd a
if cp b/* ../d ; then echo Good ; else echo bad ; fi

Actual Results:
makefile, util, etc, exit as if command fails. cp has no command to ignore
the directory, thus all script are cripled;

Expected Results:
either cp to return success (you said non-recursive copy, I did. Job well
done!)
or at least a --ignore-directories
Additional Information:

Comment 1 Bernhard Rosenkraenzer 2002-08-29 22:48:34 UTC
This is the intended behavior according to POSIX.



Note You need to log in before you can comment on or make changes to this bug.