GNU bug report logs - #28851
[bug-diffutils] - Directories compare doesn't show all differences

Previous Next

Package: diffutils;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Sun, 15 Oct 2017 16:41:01 UTC

Severity: normal

To reply to this bug, email your comments to 28851 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#28851; Package diffutils. (Sun, 15 Oct 2017 16:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Meyering <jim <at> meyering.net>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Sun, 15 Oct 2017 16:41:02 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: wasser mai <wasser19641 <at> gmail.com>
Cc: bug-diffutils <at> gnu.org, bug-gnu-utils <at> gnu.org
Subject: Re: [bug-diffutils] - Directories compare doesn't show all differences
Date: Sun, 15 Oct 2017 09:39:34 -0700
On Wed, Oct 11, 2017 at 8:07 AM, wasser mai <wasser19641 <at> gmail.com> wrote:
> Description of problem:
> Directories compare with --brief doesn't show all differencies
>
> Version-Release number of selected component (if applicable):
> 3.6
>
> How reproducible:
> always
>
> Steps to Reproduce:
> 1. create 2 directories dir1 and dir2
> 2. in dir1 create README file
> 3. in dir2 create README directory
> 4. in dir2/README directory create some files - readme1.txt readme2.txt
> 5. do diff -r --brief dir1/ dir2/
>
> Actual results:
> file dir1/README is a regular file while file dir2/README is a directory
>
> Information about files in dir2/README in compare to dir1 is not
> present - also difference
>
> Expected results:
> Show all difference as expected

Thank you for the report, but what you are seeing is the intended
behavior. What if diff (with or without --brief) were to print even
just the names of all files under your README directory, recursively?

Consider what this invocation of diff should print:

  touch /tmp/usr && diff -r /tmp/usr /

Currently, it prints only this:

  File /tmp/usr is a regular empty file while file /usr is a directory

while with your suggestion, it would print something for each of the
many files under /usr.
[I've Cc'd the bug-diffutils mailing list, per instructions at the
bottom of "diff --help" output]




This bug report was last modified 7 years and 243 days ago.

Previous Next


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