Red Hat Bugzilla – Bug 60014
cp -f and --remove-destination options do not work
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
Description of problem:
when using the -f "force" option or the --remove-destination with the
cp command, I am still prompted to confirm overwriting files.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cp any directory or file with the -f or --remove-destination option
Actual Results: I was still prompted to confirm overwriting any existing files
Expected Results: I expected files to be overwritten without requiring
I want to be able to crontab several daily file copies without having to be at
the system to confirm overwrites
By any chance, did you alias cp="cp -i"? That's the default setup for root, and will cause
precisely this behavior.
Aliasing appears to have been the problem.
Thanks for the quick feedback.
The Durham Company
Ok, not a bug then.