<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Aaron Konstam wrote:
<blockquote cite="mid:1213190106.4139.15.camel@cyrus" type="cite">
<pre wrap="">On Tue, 2008-06-10 at 16:36 -0500, Bruno Wolff III wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Tue, Jun 10, 2008 at 16:24:52 +0200,
Luc MAIGNAN <a class="moz-txt-link-rfc2396E" href="mailto:luc.maignan@winxpert.com"><luc.maignan@winxpert.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 ?
</pre>
</blockquote>
<pre wrap="">cp is probably aliased to 'cp -i'. Try using:
'cp' -rf src/file1 ./
</pre>
</blockquote>
<pre wrap=""><!---->Actually executing:
/cp -r --force src/file1 ./
will remove the alias from the execution. Notice the leading '\'
character.
--
=======================================================================
It's a recession when your neighbour loses his job; it's a depression
when you lose yours. -- Harry S. Truman
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: <a class="moz-txt-link-abbreviated" href="mailto:akonstam@sbcglobal.net">akonstam@sbcglobal.net</a>
</pre>
</blockquote>
<br>
Or just run /bin/cp -r --force src/file1 . thereby forcing the
use of the executable and not the alias. I don't understand the use of
the / at the front of the command unless cp lives under the / directory.<br>
<br>
Kevin<br>
</body>
</html>