From owner-svn-src-all@freebsd.org Sat Nov 14 17:49:31 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8328B460CD7; Sat, 14 Nov 2020 17:49:31 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CYNBg3Gb0z3jTl; Sat, 14 Nov 2020 17:49:31 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 5DFB0DBD9; Sat, 14 Nov 2020 17:49:31 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f41.google.com with SMTP id e5so6639404qvs.1; Sat, 14 Nov 2020 09:49:31 -0800 (PST) X-Gm-Message-State: AOAM532MQDNKAk6qPAhhbaRvpks2lM4ZX0U30T0tLU7EWqfE0R3Og3A5 ZGhntgHY3BUfwTpYdKzXxRCVtiv7+k8/frzJuwg= X-Google-Smtp-Source: ABdhPJxiQUG6KluASavAyNmdAnueVemt7Z6CnQM2W2Rme7w6vm37clML5HCU8u5Jv6iZMviAtDSshWmUo3ctl31JTw0= X-Received: by 2002:a05:6214:2e1:: with SMTP id h1mr7885273qvu.60.1605376170905; Sat, 14 Nov 2020 09:49:30 -0800 (PST) MIME-Version: 1.0 References: <202011141559.0AEFx1j0071546@gndrsh.dnsmgr.net> In-Reply-To: From: Kyle Evans Date: Sat, 14 Nov 2020 11:49:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r367678 - head/usr.sbin/freebsd-update To: Mateusz Piotrowski <0mp@freebsd.org> Cc: "Rodney W. Grimes" , src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2020 17:49:31 -0000 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.