bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17087: cp -i/yes gets ignored


From: Paul Eggert
Subject: bug#17087: cp -i/yes gets ignored
Date: Mon, 24 Mar 2014 23:25:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

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.

Attachment: 0001-cp-improve-quality-of-overwrite-prompt.patch
Description: Text document

Attachment: 0002-cp-simplify-overwrite-logic.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]