bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interactivity (-i) and non-interactivity


From: Philip Rowlands
Subject: Re: Interactivity (-i) and non-interactivity
Date: Mon, 12 Mar 2007 03:49:41 +0000 (GMT)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]