[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff 2.8.7 -yB bug
From: |
Ian! D. Allen |
Subject: |
diff 2.8.7 -yB bug |
Date: |
Sun, 12 Feb 2006 19:59:32 -0500 |
User-agent: |
Mutt/1.5.11 |
Diff misbehaves when using options "-yB". See the last output below:
$ diff --version
diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ rpm -q diffutils
diffutils-2.8.7-3mdk
# *** THIS IS CORRECT OUTPUT
$ diff -u a b
--- a 2006-02-12 19:49:37.000000000 -0500
+++ b 2006-02-12 19:49:43.000000000 -0500
@@ -1,8 +1,6 @@
xxx
yyy
zzz
-
aaa
bbb
ccc
-
# *** THIS IS CORRECT OUTPUT
$ diff -uB a b
# *** THIS IS CORRECT OUTPUT
$ diff a b
4d3
<
8d6
<
# *** THIS IS CORRECT OUTPUT
$ diff -B a b
# *** THIS IS CORRECT OUTPUT
$ diff -y a b
xxx xxx
yyy yyy
zzz zzz
<
aaa aaa
bbb bbb
ccc ccc
<
# *** THIS OUTPUT FROM -yB IS VERY WRONG ***
$ diff -yB a b
xxx xxx
yyy yyy
zzz zzz
aaa
aaa bbb
bbb ccc
ccc (
(
# *** THE CORRECT OUTPUT FOR -yB SHOULD LOOK LIKE THIS ***
$ diff -yB a b
xxx xxx
yyy yyy
zzz zzz
(
aaa aaa
bbb bbb
ccc ccc
(
--
-IAN! Ian! D. Allen Ottawa, Ontario, Canada - www.ottawa.ca
EMail: address@hidden Home Page: http://www.idallen.com/
College professor (Linux) via: http://teaching.idallen.com/
Support free and open public digital rights: http://eff.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- diff 2.8.7 -yB bug,
Ian! D. Allen <=