On Mar 11 2007 22:35, Andreas Schwab wrote: >> >> by default, coreutils cp will overwrite a file. Hence I put in >> >> alias cp='/bin/cp -i' >> >> into the system-wide profile. However, users wishing to override the >> now-system-default of interactivity cannot do so because -f does not >> cancel -i, and --reply is deprecated. The "mv" and "rm" programs >> however, do The Right Thing, along the lines of >> >> case 'f': >> x.interactive = false; >> >> "cp" on the other hand is missing this. The following patch adds it in. > >This is wrong. The -i and -f options are independent. The -f option only >tells cp to try harder to overwrite unwritable files, but has no effect on >interactivity.
So how come rm's -f can override -i? And how am I supposed to override the interactivity in cp? Jan -- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
