Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.utils.bug > #2221

Re: [bug-diffutils] - Directories compare doesn't show all differences

From Jim Meyering <jim@meyering.net>
Newsgroups gnu.utils.bug
Subject Re: [bug-diffutils] - Directories compare doesn't show all differences
Date 2017-10-15 09:39 -0700
Message-ID <mailman.1492.1508085600.27995.bug-gnu-utils@gnu.org> (permalink)
References <CAGS-GNaUfL10fax=OTx7CfBB8yuZdJQUXRBR+vWGfAuv6k-eKA@mail.gmail.com>

Show all headers | View raw


On Wed, Oct 11, 2017 at 8:07 AM, wasser mai <wasser19641@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]

Back to gnu.utils.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [bug-diffutils] - Directories compare doesn't show all differences Jim Meyering <jim@meyering.net> - 2017-10-15 09:39 -0700

csiph-web