[Bug 208497] less in 10.3-RELEASE in more compatibility mode cause freebsd-update to page when it shouldn't
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Apr 6 20:43:48 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208497
Xin LI <delphij at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
Assignee|freebsd-bugs at FreeBSD.org |delphij at FreeBSD.org
--- Comment #4 from Xin LI <delphij at FreeBSD.org> ---
(In reply to Andriy Gapon from comment #3)
Yes this was in discussion at late release cycle and I actually have a patch to
address it:
Index: main.c
===================================================================
--- main.c (revision 296979)
+++ main.c (working copy)
@@ -57,6 +57,7 @@ static char consoleTitle[256];
extern int less_is_more;
extern int missing_cap;
extern int know_dumb;
+extern int quit_if_one_screen;
extern int no_init;
extern int pr_type;
@@ -166,6 +167,8 @@ main(argc, argv)
if (less_is_more)
no_init = TRUE;
+ if (less_is_more)
+ quit_if_one_screen = TRUE;
#if EDITOR
editor = lgetenv("VISUAL");
The author have indicated that it was intentional and cited it was a POSIX
behavior (http://www.unix.com/man-page/posix/1p/more/) which I haven't
investigated further yet (OpenBSD behavior change was their main.c,v 1.14 at
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/less/main.c).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list