From owner-freebsd-current@FreeBSD.ORG Sat Aug 11 08:21:20 2007 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 135CB16A418; Sat, 11 Aug 2007 08:21:20 +0000 (UTC) (envelope-from ted@omval.tednet.nl) Received: from omval.tednet.nl (omval.tednet.nl [IPv6:2001:7b8:206:1:200:39ff:fe59:b187]) by mx1.freebsd.org (Postfix) with ESMTP id A37D413C458; Sat, 11 Aug 2007 08:21:19 +0000 (UTC) (envelope-from ted@omval.tednet.nl) Received: from omval.tednet.nl (localhost [127.0.0.1]) by omval.tednet.nl (8.14.1/8.14.1) with ESMTP id l7B8LBMU000497; Sat, 11 Aug 2007 10:21:11 +0200 (CEST) (envelope-from ted@omval.tednet.nl) Received: (from ted@localhost) by omval.tednet.nl (8.14.1/8.14.1/Submit) id l7B8LAWY000496; Sat, 11 Aug 2007 10:21:10 +0200 (CEST) (envelope-from ted) Message-Id: <200708110821.l7B8LAWY000496@omval.tednet.nl> From: ted@tednet.nl (Ted Lindgreen) Date: Sat, 11 Aug 2007 10:21:10 +0200 In-Reply-To: "Daniel Eischen's message as of Aug 10, 14:44" X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Daniel Eischen , Ted Lindgreen X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on omval.tednet.nl X-Mailman-Approved-At: Sat, 11 Aug 2007 14:43:55 +0000 Cc: freebsd-current@freebsd.org, delphij@freebsd.org Subject: Re: Recent change in less(1) 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: Sat, 11 Aug 2007 08:21:20 -0000 [Quoting Daniel Eischen, on Aug 10, 14:44, in "Re: Recent change in ..."] > On Fri, 10 Aug 2007, Ted Lindgreen wrote: > > > [Quoting Daniel Eischen, on Aug 7, 15:41, in "Re: Recent change in ..."] > > .... > >>> If so I have a question: how to obtain the former behaviour of the -e > >>> switch, i.e. quit when EOF is hit twice always (thus whether or not > >>> when the file happens to fit on a single page)? > >> > >> Perhaps: > >> > >> if (less_is_more) { > >> no_init = TRUE; > >> if (get_quit_at_eof()) > >> quit_if_one_screen = TRUE; > >> } > > > > Daniel, are you going to check this fix in? > > > > (Or must we live with broken "-e" functionality in future, in which > > case at least the man-page should be updated to reflect the new > > behaviour IMHO). > > I don't know. Does it work the way it is suppose to with this > patch? Above patch indeed fixes the problem I have reported, i.e. it restores the original behaviour of the "-e" functionality of less(1). regards, -- ted