GNU bug report logs - #20094
cp: add --dry-run option

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 12 Mar 2015 03:32:01 UTC

Severity: wishlist

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 20094 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>, 
 Bob Proulx <bob <at> proulx.com>
Cc: P <at> draigBrady.com, 20094 <at> debbugs.gnu.org
Subject: Re: bug#20094: cp --dry-run
Date: Sun, 15 Mar 2015 23:36:33 +0100
On 03/13/2015 05:58 PM, 積丹尼 Dan Jacobson wrote:
> I'm pretty much sure I can successfully cp/mv entire
> complicated tree A onto entire complicated tree B, but it would be great
> to know before I get started if deep inside B there is something that
> will cause some tiny part of the whole operation to fail.

I don't think a dry-run could ever predict a failure in a reliable way.
As an abstract example let's assume that such a clever copy program would
calculate the needed space in the destination upfront, and would be able
to issue an error like "the command would fail because of low disk space".
But in the case the space is sufficient (at the time of calculation), it
could never predict external influences, e.g. another program filling the
disk at the same time.  The same applies to permission issues, etc.: even
if the determination of an issue is accurate, it would still be racy in
every case.

Have a nice day,
Berny




This bug report was last modified 6 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.