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

Xin LI <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Assignee|[email protected]    |[email protected]

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

Reply via email to