wdiff does not work correctly with <() redirection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wdiff |
Unknown
|
Unknown
|
|||
wdiff (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: wdiff
wdiff produces a diff but does not display all information if one or both of the files given is a bash process substitution.
An example session:
$ echo "word1 word2 word3" > file1
$ echo "word1 word4 word3" > file2
$ wdiff file1 file2
word1 [-word2-] {+word4+} word3
$ wdiff <(cat file1) <(cat file2)
[--]{++}$ wdiff file1 <(cat file2)
[-word2-]{++}$ wdiff <(cat file1) file2
word1[--] {+word4+} word3
$ bash --version
GNU bash, version 3.2.25(1)-release (x86_64-
Copyright (C) 2005 Free Software Foundation, Inc.
$ wdiff --version
GNU wdiff 0.5
Copyright (C) 1992 Free Software Foundation, Inc.
ProblemType: Bug
Architecture: amd64
Date: Thu Nov 8 11:16:56 2007
Dependencies:
libgcc1 1:4.2.1-5ubuntu4
gcc-4.2-base 4.2.1-5ubuntu4
libncurses5 5.6+20070716-
libc6 2.6.1-1ubuntu10
DistroRelease: Ubuntu 7.10
Package: wdiff 0.5-17build1
PackageArchitec
SourcePackage: wdiff
Uname: Linux thomas 2.6.24-rc2 #8 SMP Wed Nov 7 09:38:01 CET 2007 x86_64 GNU/Linux
A small addition: While it would be nice if wdiff supported <(), failing is OK IMHO as long as there is some error message. I just used wdiff for the first time and was confused why it didn't properly display deleted words. Only after some searching it became clear that it was because I had piped in the old file through <().