Option --force for cp

James Kosin jkosin at beta.intcomgrp.com
Tue Jun 10 15:17:32 UTC 2008


wwp wrote:
> Hello James,
>
>
> On Tue, 10 Jun 2008 10:43:48 -0400 James Kosin <jkosin at beta.intcomgrp.com> wrote:
>
>   
>> Luc MAIGNAN wrote:
>>     
>>> Hi,
>>>
>>> I definitively can't force cp to override existing files without > asking confirmation.
>>>
>>> According to documentation , I try :
>>>
>>> cp -r --force src/file1 ./
>>>
>>> but always a confirmation is asked...
>>>
>>>
>>> What's wrong ?
>>>
>>>       
>> 'cp -r --reply=yes src/file1 ./'
>>
>> This will work...  Check out the man pages for cp or even cp --help
>>     
>
> I couldn't find any reference to 'reply' in both `cp --help` and `man
> cp` here (coreutils-6.9-17.fc8). What version is yours?
>
> Moreover:
>
>  $ cp --reply=yes
>  cp: the --reply option is deprecated; use -i or -f instead
>  cp: missing file operand
>  Try `cp --help' for more information.
>
> That last advice is still pertinent, James ;-). Now, what cp does Luc have?
>
>
> Regards,
>
>   
-bash-2.05b$ rpm -q coreutils
coreutils-5.0-34.1

I didn't think they would make so many changes to the core utilities.  
I've been using FC1 for years now and haven't had any problems or issues.

James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080610/50714f5f/attachment-0001.sig>


More information about the fedora-list mailing list