Luís Gomes wrote:
> 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).

Thanks for the report.
However, I cannot reproduce it.

Used as above and below, echo and printf are built-in functions,
so to reproduce, I suggest you use bash like this:

    $ bash -c 'printf hello | diff <(printf hello) -'
    $ bash --version|head -1
    GNU bash, version 4.1.7(1)-release (i386-redhat-linux-gnu)

If that fails too, then add "tee" uses to get copies of the inputs:

    printf hello | tee 1 | diff <(printf hello | tee 2) -

then compare the files, "1" and "2" to see if they
contain 5 or 6 bytes.

Reply via email to