bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] BUG comparing with stdin


From: Luís Gomes
Subject: [bug-diffutils] BUG comparing with stdin
Date: Wed, 3 Aug 2011 18:39:59 +0100

I think I have found a BUG in diff (version 3.0).

Steps to reproduce the bug (assuming shell is bash):

$ echo -n hello | diff <(echo -n hello) -
1d0
< hello
\ No newline at end of file


Expected result: no output at all (no differences).


This works as expected:
diff <(echo -n hello) <(echo -n hello)

So the problem seems to occur only when one of the files is stdin.

My machine runs Linux:

$ uname -a
Linux notebook 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux



Thanks for this software.  I couldn't live without it.
Bye,

Luís



reply via email to

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