Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2020 04:53:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 244533] [patch] diff(1) --label not honoured for "print_status"
Message-ID:  <bug-244533-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 244533
           Summary: [patch] diff(1) --label not honoured for
                    "print_status"
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jamie@catflap.org
 Attachment #212065 text/plain
         mime type:

Created attachment 212065
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212065&action=
=3Dedit
patch to restore -label functionality

Various options to "diff(1)" show filenames, and traditionally make use of =
the
"--label" parameter, if set.

The BSD diff supports --label for unified and context diffs, but doesn't for
these other cases. GNU diff, as previously installed in base did:

% diff --label hello --label world -s /COPYRIGHT /COPYRIGHT
Files /COPYRIGHT and /COPYRIGHT are identical

% gdiff --label hello --label world -s /COPYRIGHT /COPYRIGHT
Files hello and world are identical

% diff --label hello --label world /bin/ls /bin/pwd
Binary files /bin/ls and /bin/pwd differ

% gdiff --label hello --label world /bin/ls /bin/pwd
Binary files hello and world differ

etc.

The attached patch restores the previous behaviour.

Cheers, Jamie

--=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-244533-227>