[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182)
From: |
Jim Meyering |
Subject: |
Re: cp/mv: add -n option to not overwrite target (Ubuntu bug #229182) |
Date: |
Wed, 15 Oct 2008 15:10:58 +0200 |
Eric Blake <address@hidden> wrote:
> According to Kamil Dudka on 10/15/2008 3:50 AM:
>> Hello,
>>
>> at https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/229182 is
>> proposed
>> cp/mv enhancement: -n option to not overwrite target files. This option is
>> available on FreeBSD cp/mv as complement to options -i, -f:
>> http://www.ipnom.com/FreeBSD-Man-Pages/cp.1.html
>> http://www.ipnom.com/FreeBSD-Man-Pages/mv.1.html
>>
>> Do you think it would be useful to implement such enhancement in GNU
>> coreutils?
>
> The mere fact that another implementation provides this extension to Posix
> is a relatively strong argument for adding it to coreutils. What long
> option name would you give it? Care to write a patch for review?
The timing is good, too, now that --reply=... is nearly gone.
BTW, I've just noticed that while I removed --reply= documentation
from --help, I didn't remove it from coreutils.texi.
This completes the job:
>From 555c219d9eff5b0b15be7c479a8efc81f59b0ffb Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Wed, 15 Oct 2008 15:07:14 +0200
Subject: [PATCH] doc: cp, mv: remove mention of deprecated --reply= option
* doc/coreutils.texi (cp invocation, mv invocation): Don't mention it.
---
doc/coreutils.texi | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index b7e044d..183e070 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -7404,13 +7404,6 @@ cp invocation
copies the file @file{a/b/c} to @file{existing_dir/a/b/c}, creating
any missing intermediate directories.
address@hidden The --reply option was deprecated in 2005, and is scheduled to
address@hidden be removed in 2008. It is already missing from the --help
output.
address@hidden @address@hidden@var{how}}
address@hidden --reply
address@hidden interactivity
-This option is deprecated.
-
@item -R
@itemx -r
@itemx --recursive
@@ -8095,11 +8088,6 @@ mv invocation
of its permissions.
If the response is not affirmative, the file is skipped.
address@hidden @address@hidden@var{how}}
address@hidden --reply
address@hidden interactivity
-This option is deprecated.
-
@item -u
@itemx --update
@opindex -u
--
1.6.0.2.526.g5c283