bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: On darwin, diff <(echo ab) <(echo cd) does nothing


From: John.Cowan
Subject: Re: On darwin, diff <(echo ab) <(echo cd) does nothing
Date: Sun, 21 Aug 2005 21:14:46 -0400
User-agent: Mutt/1.4.2.1i

Vincent Lefevre scripsit:

> Instead of checking the file name (vs /dev/fd/*), one can say that
> if a file is a fifo, then the files are different. Even if two fifos
> were the same file, I think it is a bug not to read them, since this
> is an optimisation that has a side effect.

IMO diff and friends ought not to do this optimization for *anything*
but a plain file or directory.  "diff /dev/tty /dev/tty" currently just
returns 0 without reading anything from the tty, which is Evil and Wrong.
(Solaris diff reads two files from the tty and compares them, as it
should.)

-- 
May the hair on your toes never fall out!       John Cowan
        --Thorin Oakenshield (to Bilbo)         address@hidden




reply via email to

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