From unknown Sun Jun 22 11:41:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31712: cp --attributes-only Resent-From: kalle Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 04 Jun 2018 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31712 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 31712@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1528118579304 (code B ref -1); Mon, 04 Jun 2018 13:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jun 2018 13:22:59 +0000 Received: from localhost ([127.0.0.1]:60981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPpRr-00004q-2B for submit@debbugs.gnu.org; Mon, 04 Jun 2018 09:22:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPpRp-0008WG-NC for submit@debbugs.gnu.org; Mon, 04 Jun 2018 09:22:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPpRj-0003ut-Oc for submit@debbugs.gnu.org; Mon, 04 Jun 2018 09:22:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_05,DATE_IN_PAST_96_XX, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPpRj-0003ua-Kw for submit@debbugs.gnu.org; Mon, 04 Jun 2018 09:22:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPpRi-00060D-L4 for bug-coreutils@gnu.org; Mon, 04 Jun 2018 09:22:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPpRe-0003pG-GM for bug-coreutils@gnu.org; Mon, 04 Jun 2018 09:22:50 -0400 Received: from mail.netzguerilla.net ([217.11.57.120]:57137) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPpRe-0003na-6K for bug-coreutils@gnu.org; Mon, 04 Jun 2018 09:22:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id 1329A100015 for ; Mon, 4 Jun 2018 15:22:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id iU7sIO0td-wB for ; Mon, 4 Jun 2018 15:22:42 +0200 (CEST) Received: from [IPv6:2003:dd:ff13:7001:afed:7ee7:2574:5149] (p200300DDFF137001AFED7EE725745149.dip0.t-ipconnect.de [IPv6:2003:dd:ff13:7001:afed:7ee7:2574:5149]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 1FA23100012 for ; Mon, 4 Jun 2018 15:22:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1528118562; bh=M07JPsNcoClQAVeUILUPmaSlcaA+g66ioUctsHCewK8=; h=To:From:Subject:Date:From; b=arYh5wLhihRtOHctHmqG19OPBfMP97GS2BVeb2FuYaoZE+EJC49YJHAOQ536ckusZ D6ipoR42uk+DlDm8ECtLUbcBom7Ot9rCv34xpsoKImj1hMbtnFpz5PE4z+Ascwtsvq cPojVhpP+E92Sgol1o/JCRae1v5TE/fxVhPJSDGFhTeB2TLrrvY7ygQHK3E3DP2uvE yIB8PiLASZ+wOWiVQhudbYrsqn4rfjxFL3k/W0FNn3EsLHKtTMawza+KhX8dYdiwow KVW4bIywjRZdMw7bCFpD4NLH2cDqmPoDvSAAUokBKXgexZqZ7dt00aAFbl+aB3PP+j Rua20XI/6CFfw== From: kalle Message-ID: Date: Sat, 19 May 2018 09:54:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) hello, I have coreutils 8.26 and the option cp --attributes only FILE OTHERFILE correctly doesn't copy the content of FILE, but the modification time of OTHERFILE is the actual date, whereas I understood that it should be the same as in FILE. kalle From unknown Sun Jun 22 11:41:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31712: cp --attributes-only Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 10 Jun 2018 23:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31712 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: kalle , 31712@debbugs.gnu.org Received: via spool by 31712-submit@debbugs.gnu.org id=B31712.15286739345826 (code B ref 31712); Sun, 10 Jun 2018 23:39:02 +0000 Received: (at 31712) by debbugs.gnu.org; 10 Jun 2018 23:38:54 +0000 Received: from localhost ([127.0.0.1]:42659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS9vB-0001Vs-QO for submit@debbugs.gnu.org; Sun, 10 Jun 2018 19:38:54 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:41562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS9v9-0001Vg-QH; Sun, 10 Jun 2018 19:38:52 -0400 Received: from localhost.localdomain (unknown [76.21.115.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id CD415A985; Mon, 11 Jun 2018 00:38:49 +0100 (IST) References: From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: Date: Sun, 10 Jun 2018 16:38:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tag 31712 notabug close 31712 stop On 19/05/18 00:54, kalle wrote: > hello, > I have coreutils 8.26 > and the option > > cp --attributes only FILE OTHERFILE > > correctly doesn't copy the content of FILE, > but the modification time of OTHERFILE is the actual date, whereas I > understood that it should be the same as in FILE. You need to also specify -a, as per the documentation: ‘--attributes-only’ Copy only the specified attributes of the source file to the destination. If the destination already exists, do not alter its contents. See the ‘--preserve’ option for controlling which attributes to copy. thanks, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 06 04:15:39 2018 Received: (at control) by debbugs.gnu.org; 6 Aug 2018 08:15:39 +0000 Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmafz-0002Qu-97 for submit@debbugs.gnu.org; Mon, 06 Aug 2018 04:15:39 -0400 Received: from mail.netzguerilla.net ([217.11.57.120]:60521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmafw-0002Qa-Fp; Mon, 06 Aug 2018 04:15:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id 370FB100014; Mon, 6 Aug 2018 10:15:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id sO5LdafNXzJt; Mon, 6 Aug 2018 10:15:29 +0200 (CEST) Received: from [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b] (p200300DDFF0FBA0172E6658A93EA927B.dip0.t-ipconnect.de [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b]) by mail.netzguerilla.net (Postfix) with ESMTPSA id D7137100012; Mon, 6 Aug 2018 10:15:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1533543328; bh=k2AVt2CZGE20hwjIRLfmD6VZnpX5flfoeQ+VoRiUaPA=; h=From:Subject:To:References:Date:In-Reply-To:From; b=JUA/UqVgknSFsZTei43qNa8iOQ6tmDzZ1UWyhaFx7vmkU/IbgA0NvRDNDfG7LV3ZC owCEuTkBKS5KzYp9g9iemCZybGn3A53j1/Hm6Uay68LMRnf8bRFeI/NiRUsSA4vUEi OOG7CsX/NzRRQAuwUc5hFuZltgkp7AdVBrDh/awqzq9k6/sWHmn2OdhqhzQbvHJWs+ AkiO6o/MOrgeBcxk/93AtPMwkTVYRbakYD874YYNPjJM5VE5L5AJBsnJgiLdICi2bJ gSh4gk8ZBYhd1bJEelF87K/MSmY50ibZx0TI8VfoDVgTwWRJCVjKLgdfoD6O9ILlU2 6V40fS1/Vo6eg== From: kalle Subject: Re: bug#31712: cp --attributes-only To: =?UTF-8?Q?P=c3=a1draig_Brady?= , control@debbugs.gnu.org, 31712@debbugs.gnu.org References: Message-ID: <105f4831-f608-5599-bc3c-2712d28fc158@projektwerkstatt.de> Date: Fri, 3 Aug 2018 08:24:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 31712 Am 11.06.2018 um 01:38 schrieb Pádraig Brady: > tag 31712 notabug > close 31712 > stop > > On 19/05/18 00:54, kalle wrote: >> hello, >> I have coreutils 8.26 >> and the option >> >> cp --attributes only FILE OTHERFILE >> >> correctly doesn't copy the content of FILE, >> but the modification time of OTHERFILE is the actual date, whereas I >> understood that it should be the same as in FILE. > > You need to also specify -a, as per the documentation: > > ‘--attributes-only’ > Copy only the specified attributes of the source file to the > destination. If the destination already exists, do not alter its > contents. See the ‘--preserve’ option for controlling which > attributes to copy. > > thanks, > Pádraig > Sorry, but I just don't see any note here, requiring the use of `-a'. kalle From unknown Sun Jun 22 11:41:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31712: cp --attributes-only Resent-From: kalle Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 06 Aug 2018 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31712 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: =?UTF-8?Q?P=C3=A1draig?= Brady , control@debbugs.gnu.org, 31712@debbugs.gnu.org Received: via spool by 31712-submit@debbugs.gnu.org id=B31712.153354369310063 (code B ref 31712); Mon, 06 Aug 2018 08:22:02 +0000 Received: (at 31712) by debbugs.gnu.org; 6 Aug 2018 08:21:33 +0000 Received: from localhost ([127.0.0.1]:42244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmalg-0002cC-OL for submit@debbugs.gnu.org; Mon, 06 Aug 2018 04:21:32 -0400 Received: from mail.netzguerilla.net ([217.11.57.120]:58983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmale-0002bu-SX; Mon, 06 Aug 2018 04:21:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id 6808A100014; Mon, 6 Aug 2018 10:21:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([217.11.57.120]) by localhost (sal.netzguerilla.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AOcQ_ErlQdhE; Mon, 6 Aug 2018 10:21:24 +0200 (CEST) Received: from [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b] (p200300DDFF0FBA0172E6658A93EA927B.dip0.t-ipconnect.de [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 03BAF100012; Mon, 6 Aug 2018 10:21:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1533543684; bh=ERvUeqtHALhP6JGELMX3Ona4sJlg3I/5fc15ANB/+Xs=; h=From:Subject:To:References:Date:In-Reply-To:From; b=XWY1CkcUakfMaeb+pG9g0N47Cn7rTP75GXE26JkQVzXa7WNg7ndaY0f9saYg+0rKq +3EZMvDdpBYV0bprV2zCR/r5YsNT2+1YG7yrhuoeAN/42xIQ100voZ2w2A74fCplT0 FNkjdFd1biNf5CXDImXOOk9Zac++vMFtPpV2a4wMyeMJTDSPp40r76p61Y/XCYjCvD TReFZsuiiaKvno4yGLIaZgEK0axFBcyXgKfT2c+eRs7Ayv7tf+8rERKMxiQav/yKuT 7WF5qGNs8wnFfd+WA1GdtnW8O50/J/Rdshb6opjlnQwNOGVyP5TqkrS+G0bQvANVYE k8bbfni4KwWFA== From: kalle References: Message-ID: <944ef3e4-4b45-1a89-35d3-f534df9a434e@projektwerkstatt.de> Date: Mon, 6 Aug 2018 10:21:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 31712 From unknown Sun Jun 22 11:41:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31712: cp --attributes-only Resent-From: kalle Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 06 Aug 2018 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31712 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: =?UTF-8?Q?P=C3=A1draig?= Brady , control@debbugs.gnu.org, 31712@debbugs.gnu.org Received: via spool by 31712-submit@debbugs.gnu.org id=B31712.153354374810181 (code B ref 31712); Mon, 06 Aug 2018 08:23:02 +0000 Received: (at 31712) by debbugs.gnu.org; 6 Aug 2018 08:22:28 +0000 Received: from localhost ([127.0.0.1]:42252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmama-0002e9-AM for submit@debbugs.gnu.org; Mon, 06 Aug 2018 04:22:28 -0400 Received: from mail.netzguerilla.net ([217.11.57.120]:52885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmamZ-0002du-Lg; Mon, 06 Aug 2018 04:22:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id 4081F100014; Mon, 6 Aug 2018 10:22:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id lFFluYL6nz3X; Mon, 6 Aug 2018 10:22:21 +0200 (CEST) Received: from [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b] (p200300DDFF0FBA0172E6658A93EA927B.dip0.t-ipconnect.de [IPv6:2003:dd:ff0f:ba01:72e6:658a:93ea:927b]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 50C59100012; Mon, 6 Aug 2018 10:22:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1533543740; bh=tBfdw3nOFD3IpIdxjhET3qCL/DYusV8r2agKAlsj/kE=; h=From:Subject:To:References:Date:In-Reply-To:From; b=jjCDK57lh5Tpc3DGg8WchrBDCVNVcfgp95UBMqGh2VA5A/yUsjm9W+m2r8+oK76Pu pbrnVn6rubq1QjIyp2oCauCK5allCcNmFDcPeZSuhGuaV6eGdWKYAL8+3uvfx/m05n ZyCsx+l9nds0+YaiO3Uxw3Ax3bSmboNC1BjFuuN+xM/T4ClFalhYYW3A2A3ea4C6aN Ix4+aHk+P8vLTG4U8GNNi8NDbgvT8336FfGqnkklWaEnsQBTIrHW85OKGivo9wC1FX 1oDK5SXWNVOxBk25t4P2gatWZREDVSdrgHfqULMgh2eupQ1a3bT/G6oRlbjekt14Kb a1pu3wIm8YlFw== From: kalle References: Message-ID: Date: Mon, 6 Aug 2018 10:22:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am 11.06.2018 um 01:38 schrieb Pádraig Brady:> On 19/05/18 00:54, kalle wrote: >> hello, >> I have coreutils 8.26 >> and the option >> >> cp --attributes only FILE OTHERFILE >> >> correctly doesn't copy the content of FILE, >> but the modification time of OTHERFILE is the actual date, whereas I >> understood that it should be the same as in FILE. > > You need to also specify -a, as per the documentation: > > ‘--attributes-only’ > Copy only the specified attributes of the source file to the > destination. If the destination already exists, do not alter its > contents. See the ‘--preserve’ option for controlling which > attributes to copy. > > thanks, > Pádraig > Sorry, but I just don't see any note here, requiring the use of `-a'. kalle