GNU bug report logs - #17087
cp -i/yes gets ignored

Previous Next

Package: coreutils;

Reported by: karl <at> freefriends.org (Karl Berry)

Date: Mon, 24 Mar 2014 16:18:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>,  Karl Berry <karl <at> freefriends.org>
Cc: 17087 <at> debbugs.gnu.org
Subject: bug#17087: cp -i/yes gets ignored
Date: Mon, 24 Mar 2014 23:25:48 -0700
[Message part 1 (text/plain, inline)]
Pádraig Brady wrote:
> That code has been there "from the beginning" and I'm guessing it's
> to prompt users to allow them to chmod the file in a separate terminal?

If we go back far enough (i.e., before commit 6bf3479 dated 2000-08-27), 
this message was output only if -f was also given.  More recently we've 
seen similar complaints, e.g.: 
http://lists.gnu.org/archive/html/bug-coreutils/2007-03/msg00130.html

At least the diagnostic wording could be improved so that users who are 
prompted don't get the false impression that the copy will succeed; 
POSIX clearly allows this.  I installed the attached patches (the second 
is just a code cleanup).  Perhaps that's enough.

[0001-cp-improve-quality-of-overwrite-prompt.patch (text/plain, attachment)]
[0002-cp-simplify-overwrite-logic.patch (text/plain, attachment)]

This bug report was last modified 11 years and 57 days ago.

Previous Next


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