cp -f still prompts "do you want to overwrite". Should not prompt, since that's the purpose of the -f command.
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.