From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 23:46:03 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57D8A106566C for ; Fri, 10 Feb 2012 23:46:03 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9DB718FC0A for ; Fri, 10 Feb 2012 23:46:02 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA22573; Sat, 11 Feb 2012 01:45:59 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Rw0AA-0009Xp-Tb; Sat, 11 Feb 2012 01:45:59 +0200 Message-ID: <4F35AC34.8010809@FreeBSD.org> Date: Sat, 11 Feb 2012 01:45:56 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120202 Thunderbird/10.0 MIME-Version: 1.0 To: Chuck Swiger References: <1328887627.38277.68.camel@buffy.york.ac.uk> <4F359661.30704@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current Current Subject: Re: Enhancing the user experience with tcsh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 23:46:03 -0000 on 11/02/2012 00:29 Chuck Swiger said the following: > On Feb 10, 2012, at 2:12 PM, Andriy Gapon wrote: >> I really hate the default behavior of less where you can't quit via ^C or via >> paging through the end of file. > > It's readily tunable, by setenv'ing LESS variable to contain some of: > > -e or --quit-at-eof > Causes less to automatically exit the second time it reaches end-of-file. By default, > the only way to exit less is via the "q" command. > > -E or --QUIT-AT-EOF > Causes less to automatically exit the first time it reaches end-of-file. > > -K or --quit-on-intr > Causes less to exit immediately when an interrupt character (usually ^C) is typed. > Normally, an interrupt character causes less to stop whatever it is doing and return to > its command prompt. Note that use of this option makes it impossible to return to the > command prompt from the "F" command. Exactly. So my larger point is that less and more are actually the same binary and whatever behavior a user prefers can be achieved via MORE or LESS. Neither of the default behaviors was satisfactory enough personally for me. -- Andriy Gapon