bug-diffutils
[Top][All Lists]
Advanced

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

Re: [bug-diffutils] diff: support for --no-dereference option


From: Bruno Haible
Subject: Re: [bug-diffutils] diff: support for --no-dereference option
Date: Sun, 08 Jan 2012 03:22:22 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Andreas Gruenbacher wrote:
> In the two directories case, I really don't see when following symlinks
> would be desirable.  Here, diff is comparable to a tool like tar, for
> example -- in the tar case, I want to archive what's really there; in
> the diff case, I want to compare what's really there.

Take an example. I often move subdirectories and big files from one disk
to another one, for disk space reasons, and leave in a symlink that points
to the new location. When I now prepare a backup, I'll use "tar chf -".
And to compare the backup with the original contents, I use "diff -r".

I claim that this use-case is more frequent than the one which does not
follow symlinks. Proof: GNU diff users were happy with the existing behaviour
for 20 years.

Bruno




reply via email to

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