Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2021 09:31:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254455] BSD diff(1) compares same files and dirs
Message-ID:  <bug-254455-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254455

            Bug ID: 254455
           Summary: BSD diff(1) compares same files and dirs
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mail@fbsd2.e4m.org

Created attachment 223468
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223468&action=
=3Dedit
patch

I was wondering why a "diff -rq" on FreeBSD-12 (BSD diff) ran endlessly whi=
le
on FreeBSD-11 (GNU diff) it terminated in 0.6 seconds.

This is because BSD diff compares files and dirs even if they are the same.=
 I
checked what GNU diff does in this case and added the corresponding code to
diffdir() and diffreg(). The style is probably considered bad ;-).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254455-227>