Red Hat Bugzilla – Bug 17814
-i flag in cp overrides -f
Last modified: 2008-05-01 11:37:58 EDT
Previously, -f used to override the -i flag. In cp, this is no longer the
case, while it appears to be so in rm.
> touch foo
> touch bar
> /bin/cp -i -f foo bar
/bin/cp: overwrite 'bar`? y
>/bin/rm -i -f bar
It's not a bug, it's a feature.
I don't like it either, but POSIX demands it.
*** Bug 22451 has been marked as a duplicate of this bug. ***