On Sun, 11 Mar 2007, Jan Engelhardt wrote:
So how come rm's -f can override -i?
It can't do that always. The standard specifies that the order of the options -f and -i are important; the last one wins.
http://www.opengroup.org/onlinepubs/009695399/utilities/rm.html
And how am I supposed to override the interactivity in cp?
Don't alias "cp" in the first place? Once suggestion earlier in the thread is to call /bin/cp directly to avoid the shell alias. Another would be defining a separate alias (say, cpi) for the modified semantics.
To truly support -f and -i as you wish for cp, a wrapper script could be used to preprocess the options and remove -i if -f is seen.
Cheers, Phil _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
