Date: Sat, 11 Aug 2007 10:21:10 +0200 From: ted@tednet.nl (Ted Lindgreen) To: Daniel Eischen <eischen@vigrid.com>, Ted Lindgreen <ted@tednet.nl> Cc: freebsd-current@freebsd.org, delphij@freebsd.org Subject: Re: Recent change in less(1) Message-ID: <200708110821.l7B8LAWY000496@omval.tednet.nl> In-Reply-To: "Daniel Eischen's message as of Aug 10, 14:44"
next in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708110821.l7B8LAWY000496>