Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2018 05:57:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230049] OpenBSD diff (WITHOUT_GNU_DIFF) --strip-trailing-cr is incorrect
Message-ID:  <bug-230049-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 230049
           Summary: OpenBSD diff (WITHOUT_GNU_DIFF) --strip-trailing-cr is
                    incorrect
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: emacsray@gmail.com

% printf 'a\nb\r\nc\n' > a
% printf 'a\r\nb\r\nc\r\n' > b
% diff --strip-trailing-cr a b
...
@@ -1,3 +1,3 @@
 a
b
-c
+

GNU diff would report no difference.

The --strip-trailing-cr issue caused an LLVM test
test/MC/AsmParser/preserve-comments-crlf.s to fail.

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