Date: Sat, 14 Nov 2020 11:49:19 -0600 From: Kyle Evans <kevans@freebsd.org> To: Mateusz Piotrowski <0mp@freebsd.org> Cc: "Rodney W. Grimes" <rgrimes@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r367678 - head/usr.sbin/freebsd-update Message-ID: <CACNAnaHL=SAiN6b-_UpbjLke=S57K6sP7G601mrnf%2B48uiq-_A@mail.gmail.com> In-Reply-To: <a5026b8b-d654-b29f-bb11-7add634ac6fa@FreeBSD.org> References: <202011141559.0AEFx1j0071546@gndrsh.dnsmgr.net> <a5026b8b-d654-b29f-bb11-7add634ac6fa@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 14, 2020 at 11:20 AM Mateusz Piotrowski <0mp@freebsd.org> wrote: > > Hello Rodney, > > On 11/14/20 4:59 PM, Rodney W. Grimes wrote: > >> Author: 0mp (doc,ports committer) > >> Date: Sat Nov 14 13:07:41 2020 > >> New Revision: 367678 > >> URL: https://svnweb.freebsd.org/changeset/base/367678 > >> > >> Log: > >> Document the PAGER environment variable > >> > >> Sometimes users want to use freebsd-update(8) in a non-interactive way and > >> what they often miss is that they have to set PAGER to cat(1) in order to > >> avoid interactive prompts from less(1). > > Which was caused by the change of invoking more(1) as less(1) causing > > this regression, as when invoked as more(1) it falls off the end of > > empty input and causes no such interactive prompt. > > > > Setting PAGER to more(1) also fixes this. > > Mmm, I'm not sure if that would work. If I run "jot 1000 | more" in my terminal I still get an > interactive prompt. Could it be that you are referring to a different more(1) implementation? I'm > clearly missing something. > more(1) is more or less like `less -E`, which is a default PAGER I had advocated for back when it changed. It can be mostly non-interactive as long as your diffs are small, but it's definitely much less painful.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaHL=SAiN6b-_UpbjLke=S57K6sP7G601mrnf%2B48uiq-_A>