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.

Full log


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




This bug report was last modified 6 years and 294 days ago.

Previous Next


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