Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Apr 2016 20:43:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208497] less in 10.3-RELEASE in more compatibility mode cause freebsd-update to page when it shouldn't
Message-ID:  <bug-208497-8-CvoUhpfXRH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208497-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208497-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208497

Xin LI <delphij@FreeBSD.org> changed:

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

--- Comment #4 from Xin LI <delphij@FreeBSD.org> ---
(In reply to Andriy Gapon from comment #3)
Yes this was in discussion at late release cycle and I actually have a patc=
h to
address it:

Index: main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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 =3D TRUE;
+       if (less_is_more)
+               quit_if_one_screen =3D TRUE;

 #if EDITOR
        editor =3D 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).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208497-8-CvoUhpfXRH>