From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S0ieE-0002gK-Op for garchives@archives.gentoo.org; Fri, 24 Feb 2012 00:04:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9270AE0DCD; Fri, 24 Feb 2012 00:04:16 +0000 (UTC) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2E7F6E0CBB for ; Fri, 24 Feb 2012 00:03:01 +0000 (UTC) Received: by lahd3 with SMTP id d3so2436279lah.40 for ; Thu, 23 Feb 2012 16:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of paul.hartman@gmail.com designates 10.152.148.169 as permitted sender) client-ip=10.152.148.169; Authentication-Results: mr.google.com; spf=pass (google.com: domain of paul.hartman@gmail.com designates 10.152.148.169 as permitted sender) smtp.mail=paul.hartman@gmail.com; dkim=pass header.i=paul.hartman@gmail.com Received: from mr.google.com ([10.152.148.169]) by 10.152.148.169 with SMTP id tt9mr2966395lab.20.1330041781275 (num_hops = 1); Thu, 23 Feb 2012 16:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=wb24/pqvwrilsSaDqLd/80NqGEdwKrjlT5znfxJLDI0=; b=Pk1UlSgl7SIOTAL1l6LYjIaGX/r2qfVIsn8UzLpQJ/2r57rfx6cqmE2KcebXlkUVyj 4JI/eEx7aUvJ86HNxxawQdBDXM1haVMVoPfkubbLV9hdbJDdEtPBLEQhuEroJiIi7H+f B663SlHaQbewblVN7JQ5kwqHzLajhPD7JNXHA= Received: by 10.152.148.169 with SMTP id tt9mr2487387lab.20.1330041781206; Thu, 23 Feb 2012 16:03:01 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.112.27.131 with HTTP; Thu, 23 Feb 2012 16:02:41 -0800 (PST) In-Reply-To: <874nuhdtg2.fsf@newsguy.com> References: <20120223204200.GE2834@acm.acm> <20120223212840.GA20963@RawFedDogs.net> <874nuhdtg2.fsf@newsguy.com> From: Paul Hartman Date: Thu, 23 Feb 2012 18:02:41 -0600 X-Google-Sender-Auth: a8u7DKjk9RxACxANqyqDkEQA4LI Message-ID: Subject: Re: [gentoo-user] Re: dog - man's best friend. To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 66480dfc-ef33-44de-9967-ddd5f1190e41 X-Archives-Hash: 7fba57b6b01ef9bb94dbf8bf8406e8f5 On Thu, Feb 23, 2012 at 5:24 PM, Harry Putnam wrote: > Kevin Monceaux writes: > >> On Thu, Feb 23, 2012 at 08:42:00PM +0000, Alan Mackenzie wrote: >> >>> (a) using less, and have it take just 10 screen lines; (b) using cat et= c., >>> and have the interesting part scroll away. >> >> (c) use less -F and less will automatically exit if the entire file can = fit >> on one screen. =A0One can export LESS=3D'-F' to have less always do the = above. > > Maybe I'm seeing behavior that is not supposed to happen, but if I say > echo '## ONE LINE' > test > > And then say less -F test > > I do not get to see the one line. =A0 I don't think that's what Alan > was looking for is it? It is caused by "alternate screen" handling in your terminal emulator. You can disable alternate screen in your terminal (if possible), or remove the smcup and rmcup directives from your termcap file. As a test, you can try this: export TERM=3Dvt220 less -F test it should display the one line file. Or you can use the -X option of less like Willie said which inhibits less from using the alternate screen. But I think it may still be a bug in less, because when it's not in "pager mode" we shouldn't be using the alternate screen anyway. Taking a look at the bug list on the less website, I don't see anything. Might be worth submitting.