[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: report bug of program cp v5.2.1
From: |
Paul Eggert |
Subject: |
Re: report bug of program cp v5.2.1 |
Date: |
Tue, 19 Sep 2006 09:49:52 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
"Connor Xu" <address@hidden> writes:
> In the Fedora 3,the default version of cp program is 5.2.1. and the cp is
> set a alias as "cp -i" in the file ~/.bashrc.
> In this statement,the cp can not run well.
> 1, copy file named "a" into file named "b" with command "cp a b".
> 2 duplicate the step 1, it prompt that the file b is exist. i think it
> is well.
> 3 copy file named "a" into file named "b" with command "cp -rf a
> b", but the prompt is still appear. In the other verions of cp can not
> found this .
POSIX requires "cp -i -f" to have the same meaning as "cp -f -i".
This is a bit of an FAQ. I installed the following patch to the
documentation to try to clarify things.
2006-09-19 Paul Eggert <address@hidden>
* coreutils.texi (cp invocation): Say that -i and -f are
independent. Clarify -i's behavior.
--- doc/coreutils.texi 8 Sep 2006 17:19:52 -0000 1.349
+++ doc/coreutils.texi 19 Sep 2006 16:47:16 -0000
@@ -6890,6 +6890,9 @@ tries to open it again. Contrast this b
is never opened but rather is unlinked unconditionally. Also see the
description of @option{--remove-destination}.
+This option is independent of the @option{--interactive} or
address@hidden option: neither cancels the effect of the other.
+
@item -H
@opindex -H
If a command line argument specifies a symbolic link, then copy the
@@ -6901,7 +6904,8 @@ via recursive traversal.
@itemx --interactive
@opindex -i
@opindex --interactive
-Prompt whether to overwrite existing regular destination files.
+When copying a regular file, prompt whether to overwrite an existing
+destination file.
@item -l
@itemx --link