bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15173: [cp] --link overrides dereference settings


From: Pádraig Brady
Subject: bug#15173: [cp] --link overrides dereference settings
Date: Thu, 07 Nov 2013 10:14:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 11/07/2013 07:07 AM, Bernhard Voelker wrote:
> Okay, so we're leaving the ground of the GNU extension --link here.

Yes.
I think the --link case should be considered separately (with and without -R).
I.E. IMHO your current patch is fine and good.

> cp's dereferencing vs. non-dereferencing behavior with -r seems to be a
> longer story, e.g. there have been several commits between Dec 2001 and
> Mar 2002.  I don't know why and I can't tell a reason, but I have the
> impression that the current behavior is the best choice for almost all
> situations.  On the other side, many scripts I've seen (including mine)
> are using the -a option (which is "-dR --preserve=all" with in turn
> -d as "--no-dereference --preserve=links") for copying whole directory
> tree ... that may be an indication that the default for -r alone is not
> that much used.
> Anyway, I belief that doing a change aside from this --link patch
> would be quite delicate.

The general -R dereferencing discussion can continue in 15806.

thanks,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]