GNU bug report logs - #31712
cp --attributes-only

Previous Next

Package: coreutils;

Reported by: kalle <kalle <at> projektwerkstatt.de>

Date: Mon, 4 Jun 2018 13:23:01 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31712 in the body.
You can then email your comments to 31712 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#31712; Package coreutils. (Mon, 04 Jun 2018 13:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to kalle <kalle <at> projektwerkstatt.de>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 04 Jun 2018 13:23:01 GMT) Full text and rfc822 format available.

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

From: kalle <kalle <at> projektwerkstatt.de>
To: bug-coreutils <at> gnu.org
Subject: cp --attributes-only
Date: Sat, 19 May 2018 09:54:18 +0200
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




Information forwarded to bug-coreutils <at> gnu.org:
bug#31712; Package coreutils. (Sun, 10 Jun 2018 23:39:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: kalle <kalle <at> projektwerkstatt.de>, 31712 <at> debbugs.gnu.org
Subject: Re: bug#31712: cp --attributes-only
Date: Sun, 10 Jun 2018 16:38:47 -0700
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




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sun, 10 Jun 2018 23:39:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 31712 <at> debbugs.gnu.org and kalle <kalle <at> projektwerkstatt.de> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sun, 10 Jun 2018 23:39:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 09 Jul 2018 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from kalle <kalle <at> projektwerkstatt.de> to control <at> debbugs.gnu.org. (Mon, 06 Aug 2018 08:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#31712; Package coreutils. (Mon, 06 Aug 2018 08:22:02 GMT) Full text and rfc822 format available.

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

From: kalle <kalle <at> projektwerkstatt.de>
To: Pádraig Brady <P <at> draigBrady.com>,
 control <at> debbugs.gnu.org, 31712 <at> debbugs.gnu.org
Subject: Re: bug#31712: cp --attributes-only
Date: Mon, 6 Aug 2018 10:21:23 +0200
unarchive 31712




Information forwarded to bug-coreutils <at> gnu.org:
bug#31712; Package coreutils. (Mon, 06 Aug 2018 08:23:02 GMT) Full text and rfc822 format available.

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

From: kalle <kalle <at> projektwerkstatt.de>
To: Pádraig Brady <P <at> draigBrady.com>,
 control <at> debbugs.gnu.org, 31712 <at> debbugs.gnu.org
Subject: Re: bug#31712: cp --attributes-only
Date: Mon, 6 Aug 2018 10:22:20 +0200
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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 03 Sep 2018 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 242 days ago.

Previous Next


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