Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 23:50:01 +0100
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        rgrimes@freebsd.org, Kyle Evans <kevans@freebsd.org>
Cc:        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:  <4f517cd5-703a-2941-2abf-77c22c3c0514@FreeBSD.org>
In-Reply-To: <202011172241.0AHMffWK086732@gndrsh.dnsmgr.net>
References:  <202011172241.0AHMffWK086732@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/17/20 11:41 PM, Rodney W. Grimes wrote:
>> On Sat, Nov 14, 2020 at 11:20 AM Mateusz Piotrowski <0mp@freebsd.org> wrote:
>>> 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.
>>>
> Part of what your missing is freebsd-update(8) often outputs a 0
> length file which less(1) well want you to respond Quit to before
> going to the next file.  more(1) does not do that.

Ah, now I see! I forgot about this case. Sure, in this case the old more(1) or the new less(1) with 
-E are sufficient as well.

Thanks a lot, Rodney!

I guess that I'll leave the "cat" in the manual for now as it offers fully non-interactive experience.

Cheers,

Mateusz




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f517cd5-703a-2941-2abf-77c22c3c0514>