GNU bug report logs - #17075
diff - - exits immediately

Previous Next

Package: diffutils;

Reported by: karl <at> freefriends.org (Karl Berry)

Date: Sun, 23 Mar 2014 21:22:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Karl Berry <karl <at> freefriends.org>, 17075 <at> debbugs.gnu.org
Subject: bug#17075: [bug-diffutils] bug#17075: diff - - exits immediately
Date: Sun, 23 Mar 2014 14:47:13 -0700
Karl Berry wrote:
> It seems like it should either read stdin twice (probably too much
> trouble), or read stdin once and then abort when it can't be read again,
> or just abort immediately.  Or something, just not success.

I don't see why 'diff' should be prohibited from optimizing the case 
'diff A A'.  'diff' should be allowed to read 'A' just once (or even not 
at all, which is what 'diff' actually does).  '-' is just a special case 
of this.




This bug report was last modified 11 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.