From owner-freebsd-current@FreeBSD.ORG Tue Aug 7 10:48:26 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 5AC1B16A419 for ; Tue, 7 Aug 2007 10:48:26 +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 E4CA113C46C for ; Tue, 7 Aug 2007 10:48:25 +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 l77AmIDj002101 for ; Tue, 7 Aug 2007 12:48:18 +0200 (CEST) (envelope-from ted@omval.tednet.nl) Received: (from ted@localhost) by omval.tednet.nl (8.14.1/8.14.1/Submit) id l77AmHoW002100 for freebsd-current@freebsd.org; Tue, 7 Aug 2007 12:48:17 +0200 (CEST) (envelope-from ted) Message-Id: <200708071048.l77AmHoW002100@omval.tednet.nl> From: ted@tednet.nl (Ted Lindgreen) Date: Tue, 7 Aug 2007 12:48:17 +0200 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: freebsd-current@freebsd.org X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,BAYES_50 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: Tue, 07 Aug 2007 11:30:01 +0000 Subject: 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: Tue, 07 Aug 2007 10:48:26 -0000 Hi, The recent change in the behaviour of less(1) rcsdiff -u -r1.9 -r1.10 /home/ncvs/src/contrib/less/main.c,v =================================================================== RCS file: /home/ncvs/src/contrib/less/main.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- main.c 2007/06/23 15:28:00 1.9 +++ main.c 2007/08/04 13:16:09 1.10 @@ -165,7 +165,7 @@ quit(QUIT_OK); } - if (less_is_more && get_quit_at_eof()) + if (less_is_more || get_quit_at_eof()) no_init = quit_if_one_screen = TRUE; wonders me a little. Is this really the desired behaviour? 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)? I also have a remark: I think that also the man-page should be updated, because: COMPATIBILITY WITH MORE ..... The -e option works differently. If the -e option is not set, less behaves as if the -E option were set. If the -e option is set, less behaves as if the -e and -F options were set. is no longer the case. With above change, more-compatibility OR -e implies -F, while above documents that only more-compatibility AND -e would imply -F. regards, -- ted