emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#20929: closed (problem with diff -B and incomplete


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20929: closed (problem with diff -B and incomplete lines)
Date: Sun, 01 May 2016 02:12:02 +0000

Your message dated Sat, 30 Apr 2016 19:11:15 -0700
with message-id <address@hidden>
and subject line Re: problem with diff -B and incomplete lines
has caused the debbugs.gnu.org bug report #20929,
regarding problem with diff -B and incomplete lines
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20929: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20929
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: problem with diff -B and incomplete lines Date: Mon, 29 Jun 2015 09:58:42 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 Thanks for the bug report. I'm forwarding this to bug-diffutils so that it gets a proper bug number.

-------- Forwarded Message --------
Subject: Bug in diff
Date: Mon, 29 Jun 2015 16:00:48 +0100
From: Ricardo Anido <address@hidden>
To: address@hidden

If the last line of a file has a sole character and no '\n', using the flag
-B makes diff miss the difference between files. The difference is
correctly reported using flags -b or -w. Better explained by an example,
below. Notice that the last line of tmp2 has only the character 'X':

--------------------

address@hidden:~$ cat tmp1

a

b

c

address@hidden:~$ cat tmp2

a

b

c

address@hidden:~$ od -cx tmp1

0000000   a  \n   b  \n   c  \n

           0a61    0a62    0a63

0000006

address@hidden:~$ od -cx tmp2

0000000   a  \n   b  \n   c  \n   X

           0a61    0a62    0a63    0058

0000007

address@hidden:~$ diff -B tmp1 tmp2

address@hidden:~$ diff -b tmp1 tmp2

3a4

X

\ No newline at end of file
address@hidden:~$
--------------------

Best regards, thanks for the amazing work on gnu!

---
Ricardo Anido
IC-UNICAMP
Av. Albert Einstein, 1251
13083-852 Campinas SP
Tel. (19) 3521 5863    Fax. (19) 3521 5847





--- End Message ---
--- Begin Message --- Subject: Re: problem with diff -B and incomplete lines Date: Sat, 30 Apr 2016 19:11:15 -0700
Thanks for the report.
That was fixed by this change:

   http://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=v3.3-24-gd2fd9d4

That will be included in the upcoming diffutils-3.4


--- End Message ---

reply via email to

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