From owner-freebsd-current@FreeBSD.ORG Fri Aug 10 08:31:52 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 C31A216A419; Fri, 10 Aug 2007 08:31:52 +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 56E9A13C45A; Fri, 10 Aug 2007 08:31:51 +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 l7A8VmGn009413; Fri, 10 Aug 2007 10:31:49 +0200 (CEST) (envelope-from ted@omval.tednet.nl) Received: (from ted@localhost) by omval.tednet.nl (8.14.1/8.14.1/Submit) id l7A8VmoA009412; Fri, 10 Aug 2007 10:31:48 +0200 (CEST) (envelope-from ted) Message-Id: <200708100831.l7A8VmoA009412@omval.tednet.nl> From: ted@tednet.nl (Ted Lindgreen) Date: Fri, 10 Aug 2007 10:31:48 +0200 In-Reply-To: "Daniel Eischen's message as of Aug 7, 15:41" X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Daniel Eischen 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: Fri, 10 Aug 2007 11:26:30 +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: Fri, 10 Aug 2007 08:31:52 -0000 [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). -- ted