X-Loop: help-debbugs@HIDDEN Subject: bug#15738: Inconsistency & bug cp -a A B doesn't reliably create 'B' as a copy of 'A' even w/--remove-destination Resent-From: Linda Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Sun, 27 Oct 2013 19:25:02 +0000 Resent-Message-ID: <handler.15738.B.13829018658053 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 15738 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 15738 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.13829018658053 (code B ref -1); Sun, 27 Oct 2013 19:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2013 19:24:25 +0000 Received: from localhost ([127.0.0.1]:47720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VaVwm-00025p-1W for submit <at> debbugs.gnu.org; Sun, 27 Oct 2013 15:24:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57173) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <coreutils@HIDDEN>) id 1VaVwg-00025U-V7 for submit <at> debbugs.gnu.org; Sun, 27 Oct 2013 15:24:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1VaVwT-0001C3-8G for submit <at> debbugs.gnu.org; Sun, 27 Oct 2013 15:24:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1VaVwT-0001Bz-53 for submit <at> debbugs.gnu.org; Sun, 27 Oct 2013 15:24:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1VaVwM-00073H-Q2 for bug-coreutils@HIDDEN; Sun, 27 Oct 2013 15:24:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1VaVwG-00011N-QX for bug-coreutils@HIDDEN; Sun, 27 Oct 2013 15:23:58 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:38986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1VaVwG-00011F-GQ for bug-coreutils@HIDDEN; Sun, 27 Oct 2013 15:23:52 -0400 Received: from [192.168.4.12] (Athenae [192.168.4.12]) by Ishtar.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id r9RJNmaE055007 for <bug-coreutils@HIDDEN>; Sun, 27 Oct 2013 12:23:50 -0700 Message-ID: <526D6844.8020201@HIDDEN> Date: Sun, 27 Oct 2013 12:23:48 -0700 From: Linda Walsh <coreutils@HIDDEN> User-Agent: Thunderbird MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) with "--remove-destination", I think this a bug. W/o it, it is inconsistent with the requirement not to use "dirname/." to refer to contents in 'rm'. details: mkdir a touch a/file mkdir a/dir cp -a a b #'ok' touch a/file2 now: cp -au a b (or) cp -a a b Either form creates another complete copy of 'a' in directory 'b'. (Note, this is historical behavior). FWIW, cp -a a/ b/ behaves the same way. However, cp -a a/. b/. fails the 1st time, but not if 'b' is already created (by using a form from above). Technically, though, the above should fail, as it says says to copy the dir-entry for '.' over the dot entry in 'b'. While using '.' as a shorthand for contents of a dir has been normal, it no longer works in utils like 'rm'. ---!!!--- *More troublesome* is that: cp -a --remove-destination a b doesn't work, but duplicates the behaviors of the above. If 'b' is removed *before* the copy, as is documented, then it should be no different than the case where 'a' is copied to a non-existent 'b'.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Linda Walsh <coreutils@HIDDEN> Subject: bug#15738: Acknowledgement (Inconsistency & bug cp -a A B doesn't reliably create 'B' as a copy of 'A' even w/--remove-destination) Message-ID: <handler.15738.B.13829018658053.ack <at> debbugs.gnu.org> References: <526D6844.8020201@HIDDEN> X-Gnu-PR-Message: ack 15738 X-Gnu-PR-Package: coreutils Reply-To: 15738 <at> debbugs.gnu.org Date: Sun, 27 Oct 2013 19:25:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 15738 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 15738: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15738 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 11 Jan 2019 09:06:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 04:06:58 2019 Received: from localhost ([127.0.0.1]:54527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ghsmI-0001O4-8l for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 04:06:58 -0500 Received: from mail-pf1-f182.google.com ([209.85.210.182]:46276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1ghsmH-0001Nr-E6 for control <at> debbugs.gnu.org; Fri, 11 Jan 2019 04:06:57 -0500 Received: by mail-pf1-f182.google.com with SMTP id c73so6665060pfe.13 for <control <at> debbugs.gnu.org>; Fri, 11 Jan 2019 01:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=uWQhHGYd34mv7aTdjRVZY2ipMfiIBAbjQh/yuo91ZRQ=; b=o99WjpUAniFeoYhoelan5fZfgvaYhy/RmsPzJeSHJI1sNKGzS5Ic8Z0k2MHcyfkjWC DE1puPNS2ZgP7C8p01KL5R6RYaC5LeonuXFAF6xen7rJaVW+hlU8JAwf5PWzkYeW/I7j EdSlh7GgLFVsNPYxueqOCwok6qRxvFlQlsJgg7+OFk84v1ninzAXaSxG6VIfYBMy+LIs CoKTpwWQ0PVnNmKsdweeBPWZn4I4Dc/6MWlO1ssISjnvp97AnmX6aF02KKqvj21tzoMo 83aLUfSfR9tUa/BBMzmAlELWbBBqh0ETBLPUK/OJpF2NU7hRu8CH2YdCHt7LVdZz8j8u YXuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=uWQhHGYd34mv7aTdjRVZY2ipMfiIBAbjQh/yuo91ZRQ=; b=LGuoqe/woLFXavMxfJNAAWryb+wwtMe5BWbm9mUblAdJ5ZHCZ5JtSbkr2r35RDw8Yh LR3gUR6cnHXTiqYBcGqVlYhPZMwkghd4tZE2G6zPSbJX6B3koSw/XACiA1EHe/MdLFF+ HavcpRZuh0JxblO+P+B5rS17l2MxiiwGOChMuweidFOexHO9WzRNiBGSi4QZmu7Evp07 P8oK/UbvdlkNkbA/AbCpc8KYUxDGbbthxKz6SihTzOlW+VWWesoip65pCpDGHrbMv4lX OiOS3reSTi5oth1tUH3Mf9PZuw2FirZ78qPV648je4YNTHUeEZ1Duz7NX3gIg4G414D2 qy5w== X-Gm-Message-State: AJcUukeqjD64eiDmoEKA99w6KtMLH/k64wZbrH1jb7KWq0Em8CQPf2mO ojfpXHqCze2s6gpQs1mMLAWexgDL X-Google-Smtp-Source: ALg8bN7uOXLFAi+pwbHg/u2mdjshK/Ug0vGtq3pXZfkIRj5HWQjnLZCC19Pu/Y/5FtfepTsrKx2IkQ== X-Received: by 2002:a63:587:: with SMTP id 129mr12469814pgf.273.1547197611221; Fri, 11 Jan 2019 01:06:51 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id v89sm120901699pfj.164.2019.01.11.01.06.49 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 01:06:50 -0800 (PST) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <672cc3a7-79dc-31a2-b51f-54877e82a2e5@HIDDEN> Date: Fri, 11 Jan 2019 02:06:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 17138 cp: how to respect target symlinks? retitle 17103 cp: "cp -al" doesn't copy symlinks, tries to link to them retitle 15738 cp: "cp -a A B" doesn't reliably create 'B' as copy of A Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.210.182 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) retitle 17138 cp: how to respect target symlinks? retitle 17103 cp: "cp -al" doesn't copy symlinks, tries to link to them retitle 15738 cp: "cp -a A B" doesn't reliably create 'B' as copy of A
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.