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


Groups > gnu.utils.bug > #2221 > unrolled thread

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

Started byJim Meyering <jim@meyering.net>
First post2017-10-15 09:39 -0700
Last post2017-10-15 09:39 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.utils.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromJim Meyering <jim@meyering.net>
Date2017-10-15 09:39 -0700
SubjectRe: [bug-diffutils] - Directories compare doesn't show all differences
Message-ID<mailman.1492.1508085600.27995.bug-gnu-utils@gnu.org>
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]

[toc] | [standalone]


Back to top | Article view | gnu.utils.bug


csiph-web