On Thu, Aug 09, 2001 at 10:10:35PM -0500, John Hasler wrote:
> dman writes:
> > I just checked it on my system using both cat and vim and they give the
> > identical contents of '1' as well.  Must be emacs isn't right ;-).
> 
> cat, cp, and vim show '0' (correct for this box) but emacs, ae, and nvi
> claim the file is empty.

I just checked, and ls reports that the file is empty (no great surprise).
So presumably the latter editors first check the size before reading the
file, while the former ones simply read from it until they hit EOF.

Interestingly, cp also works properly with this file (gives a file with a
zero in it), as does tar.
-- 
David Roundy
http://civet.berkeley.edu/droundy/

Reply via email to