From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 24 12:37:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E1AA16A4CE for ; Sat, 24 Jan 2004 12:37:41 -0800 (PST) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6047E43D3F for ; Sat, 24 Jan 2004 12:37:40 -0800 (PST) (envelope-from kai@freshx.de) Received: from localhost (unknown [127.0.0.1]) by dust.freshx.de (Postfix) with ESMTP id F002515E32D; Sat, 24 Jan 2004 21:37:30 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by dust.freshx.de (Postfix) with ESMTP id 3487115E305; Sat, 24 Jan 2004 21:37:30 +0100 (CET) Received: from 127.0.0.1 ( [127.0.0.1]) as user dust0005@localhost by localhost with HTTP; Sat, 24 Jan 2004 21:37:30 +0100 Message-ID: <1074976650.4012d78a1aae3@localhost> Date: Sat, 24 Jan 2004 21:37:30 +0100 From: kai@freshx.de To: =?ISO-8859-1?B?RGFnLUVybGluZyBTbfhyZ3Jhdg==?= References: <1074970937.4012c1394eba7@localhost> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.0 X-Virus-Scanned: by AMaViS 0.3.12 X-Mailman-Approved-At: Sun, 25 Jan 2004 06:00:31 -0800 cc: hackers@freebsd.org cc: sapdb@komadev.de Subject: Re: strange "less" behaviour on big files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 20:37:41 -0000 Zitat von Dag-Erling Smørgrav : > Kai Mosebach 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 ...