Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 21:37:30 +0100
From:      kai@freshx.de
To:        =?ISO-8859-1?B?RGFnLUVybGluZyBTbfhyZ3Jhdg==?= <des@des.no>
Cc:        sapdb@komadev.de
Subject:   Re: strange "less" behaviour on big files
Message-ID:  <1074976650.4012d78a1aae3@localhost>
In-Reply-To: <xzpd699qe65.fsf@dwp.des.no>
References:  <1074970937.4012c1394eba7@localhost> <xzpd699qe65.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Zitat von Dag-Erling Smørgrav <des@des.no>:

> Kai Mosebach <kai@freshx.de> writes:
> > i lessed a 1.0 gig file filled with zeros and less seems to slurp in
> > as much as it can get at one time!
> 
> AFAIK, it tries to read one entire line; since your file doesn't
> contain any line feed characters, it ends up reading the entire file.
> 
> DES
> -- 
> Dag-Erling Smørgrav - des@des.no
> 
> 

Yeah, thought of something like this, because on "real" binary files you get 
asked, if you want to show the binary file, on the zero file not.

Still strange though, that 4.9 has no problem with it ...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1074976650.4012d78a1aae3>