https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208497

Xin LI <delp...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Assignee|freebsd-bugs@FreeBSD.org    |delp...@freebsd.org

--- Comment #4 from Xin LI <delp...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to