strange "less" behaviour on big files

kai at freshx.de kai at freshx.de
Sat Jan 24 12:37:41 PST 2004


Zitat von Dag-Erling Smørgrav <des at des.no>:

> Kai Mosebach <kai at 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 at 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 ...




More information about the freebsd-hackers mailing list