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