bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] bug#43923: bug#43923: "only in" message in recursive dif


From: Paul Eggert
Subject: [bug-diffutils] bug#43923: bug#43923: "only in" message in recursive diff is ambiguous and hence useless if the directories have the same name
Date: Sun, 11 Oct 2020 13:25:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 10/11/20 6:52 AM, php fan wrote:
- have two folders with the same name under different paths such as
/path/to/xxx and /path/to/other/xxx
- Have some files that exist only in one folder, and some that exist
only in the other
- Run:

$ diff -r /path/to/xxx /path/to/other/xxx

You'll get messages like:
   Only in xxx: somefile.txt
   Only in xxx: otherfile.php

You see the problem, right?

I don't see the problem with diffutils 3.7:

$ mkdir -p path/to/xxx path/to/other/xxx
$ touch path/to/xxx/a path/to/other/xxx/b
$ diff -r path/to/xxx path/to/other/xxx
Only in path/to/xxx: a
Only in path/to/other/xxx: b





reply via email to

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