🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1186

Meaning of `diff - -' ?

#1186
From: Francois Pinard
Date: Wed, 30 Dec 1992 21:23
15 lines
1169 bytes
This is GNU diff 2.0, installed with GNU C 1.41 under COFF
encapsulation on a 386/ix 2.0.2 system, waiting for Hurd :-).

The command `diff - -' exits right away with status 0 without reading
standard input at all.  By contrast, `diff - /dev/null' reads standard
input until end of file.

It is not clear from the documentation what `diff - -' really means.
I would suggest that this particular case be caught and diagnosed as
improper usage, and be also documented as such.

-- 
Franc,ois Pinard       ``Happy GNU Year!''      pinard@iro.umontreal.ca
(514) 588-4656                                   ...!uunet!iros1!pinard
About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
Technical Details
Message-ID: <9212302123.AA02072@icule.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard
From: pinard@icule.UUCP (Francois Pinard)
Subject: Meaning of `diff - -' ?
Message-ID: <9212302123.AA02072@icule.UUCP>
Sender: gnulists@ai.mit.edu
Reply-To: pinard@iro.umontreal.ca
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 30 Dec 1992 21:23:21 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 16