Bug 22451
Summary: | cp -f no longer working | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Bill Stephens <bill.stephens> |
Component: | fileutils | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED NOTABUG | QA Contact: | Aaron Brown <abrown> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-12-18 16:33:44 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bill Stephens
2000-12-18 15:44:16 UTC
Get rid of the 'cp=cp -i' alias in your ~/.bashrc. See bug #17814 for more information on why it's not a bug. *** This bug has been marked as a duplicate of 17814 *** Hold on now, so what you're saying is -f no longer does anything. So why have the -f option anymore? If I remove the -i in bashrc, then I am nolonger prompted at all. I'm sorry but it sounds like 1+1 is adding up to 1 instead of 2 here. I agree this is a duplicate of 17814, but either -f needs to work again or get rid of the -f override option. See the man page for what -f is supposed to do POSIXally. There's no reason you can't use -i and -f together (it will overwrite files, but prompt you). Don't use the cp -i alias and you get what you (and everyone else, myself included ;) ) want. *** Bug 24457 has been marked as a duplicate of this bug. *** Although you marked this bug as resolved, the suggestion 'remove -i' is a bit ridiculous. People have cp -i aliased to cp for everyday use, and used to use cp -f in rare cases precisely to override -i. (I want almost always cp -i behaviour, and only somtimes plain cp, so alias is usefull). Now what, we have to use full path in this cases ? Regards, Dmitri Pogosyan Use "unalias cp", "unalias mv", "unalias rm" in your ~/.bashrc. -f is not supposed to affect -i at all, according to POSIX. I don't like it either, but we have to follow standards. |