GNU bug report logs - #5947
[PATCH] cp: add an option to only copy the file attributes

Previous Next

Package: coreutils;

Reported by: Pádraig Brady <P <at> draigBrady.com>

Date: Wed, 14 Apr 2010 15:36:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

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 5947 in the body.
You can then email your comments to 5947 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 owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5947; Package coreutils. (Wed, 14 Apr 2010 15:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pádraig Brady <P <at> draigBrady.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 14 Apr 2010 15:36:01 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Report bugs to <bug-coreutils <at> gnu.org>
Subject: [PATCH] cp: add an option to only copy the file attributes
Date: Wed, 14 Apr 2010 16:34:35 +0100
[Message part 1 (text/plain, inline)]
From the NEWS of the attached patch:

"cp now accepts the --attributes-only option to not copy file data,
which is useful for efficiently modifying files."

For an example script that uses this option see:
http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00261.html

cheers,
Pádraig.
[cp-attributes-only.diff (text/x-patch, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5947; Package coreutils. (Wed, 14 Apr 2010 16:35:01 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
Cc: "5947 <at> debbugs.gnu.org" <5947 <at> debbugs.gnu.org>
Subject: Re: bug#5947: [PATCH] cp: add an option to only copy the file
	attributes
Date: Wed, 14 Apr 2010 17:33:49 +0100
On 14/04/10 17:27, Voelker, Bernhard wrote:
> Pádraig Brady wrote:
>> "cp now accepts the --attributes-only option to not copy file data,
>> which is useful for efficiently modifying files."
> 
> is this like `touch -r ...`?

Right, except that it handles
permissions and xattrs as well as timestamps.

cheers,
Pádraig.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5947; Package coreutils. (Wed, 14 Apr 2010 16:49:01 GMT) Full text and rfc822 format available.

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

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Pádraig Brady <P <at> draigBrady.com>,
	"5947 <at> debbugs.gnu.org" <5947 <at> debbugs.gnu.org>
Subject: RE: bug#5947: [PATCH] cp: add an option to only copy the file
	attributes
Date: Wed, 14 Apr 2010 18:27:02 +0200
Pádraig Brady wrote:
> "cp now accepts the --attributes-only option to not copy file data,
> which is useful for efficiently modifying files."

is this like `touch -r ...`?

Bye,
Berny



Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5947; Package coreutils. (Wed, 14 Apr 2010 16:49:02 GMT) Full text and rfc822 format available.

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

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: "5947 <at> debbugs.gnu.org" <5947 <at> debbugs.gnu.org>
Subject: RE: bug#5947: [PATCH] cp: add an option to only copy the file
	attributes
Date: Wed, 14 Apr 2010 18:38:16 +0200
Pádraig Brady wrote:
> On 14/04/10 17:27, Voelker, Bernhard wrote:
>> Pádraig Brady wrote:
>>> "cp now accepts the --attributes-only option to not copy file data,
>>> which is useful for efficiently modifying files."
>> 
>> is this like `touch -r ...`?
>
> Right, except that it handles
> permissions and xattrs as well as timestamps.

that's cool, thanks.

Bye,
Berny




bug closed, send any further explanations to Pádraig Brady <P <at> draigBrady.com> Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Thu, 03 Jun 2010 12:38:01 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. (Fri, 02 Jul 2010 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 361 days ago.

Previous Next


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