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: Jan Engelhardt
Subject: Re: Interactivity (-i) and non-interactivity
Date: Sun, 11 Mar 2007 23:16:05 +0100 (MET)

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
-- 




reply via email to

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