Re: Small patch to add -a to cp

From: Henrik Brix Andersen <brix_at_FreeBSD.org>
Date: Mon, 25 Feb 2008 22:19:19 +0100
On Wed, Feb 13, 2008 at 11:53:04AM -0500, John Baldwin wrote:
> On Monday 11 February 2008 04:47:44 pm David Frascone wrote:
> > This small patch adds the -a (archive) flag to cp.  Personally, I use cp -a
> > all the time, and I miss it on BSD.  This makes cp share the common -a flag
> > with rsync and other file manipulation utilities.
> > 
> > Comments, flames, etc welcome.
> 
> I have this patch from the last time this came up.  It maps -a to -RpP rather
> than -rpP though.  Since -r won't preserve symlinks but copy their contents, I
> think -RpP is probably the better default.

...

Looks good to me, yes. Does anybody have any objections to this option
being added to cp(1) in -current?

Brix
-- 
Henrik Brix Andersen <brix_at_FreeBSD.org>

Received on Mon Feb 25 2008 - 20:19:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC