Created attachment 148574 [details] freebsd-update $PAGER patch freebsd-update(8) utility shows the updatable/deletable etc. files at the fetch stage. This list is displayed using the $PAGER, even when there is no change. This is unnoticeable with more but, when the user sets less as the $PAGER then several empty pages are displayed. This patch changes the freebsd-update script to invoke $PAGER only if there are displayable information.
Created attachment 148575 [details] freebsd-update.sh $PAGER patch New patch without subshell usage
dup of Bug 208497?
*** Bug 183579 has been marked as a duplicate of this bug. ***
A commit references this bug: Author: emaste Date: Thu Jan 24 18:26:31 UTC 2019 New revision: 343407 URL: https://svnweb.freebsd.org/changeset/base/343407 Log: freebsd-update: open $PAGER only if necessary PR: 194547, 208497 Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> Reviewed by: delphij MFC after: 1 month Sponsored by: The FreeBSD Foundation Changes: head/usr.sbin/freebsd-update/freebsd-update.sh
A commit references this bug: Author: ngie Date: Thu Jan 24 20:35:59 UTC 2019 New revision: 343412 URL: https://svnweb.freebsd.org/changeset/base/343412 Log: Fix a typo/wordsmith a description modified in r343407 r343407 accidentally introduced a typo (folling -> following). While reading the change out loud, I realized that the original sentence was wordy. almost sounding like a run-on sentence. Improve the flow by splitting up the two thoughts into two distinct sentence fragments. PR: 194547, 208497 Reviewed by: emaste Approved by: emaste (mentor) MFC after: 1 month MFC with: r343407 Differential Revision: https://reviews.freebsd.org/D18947 Changes: head/usr.sbin/freebsd-update/freebsd-update.sh
A commit references this bug: Author: emaste Date: Tue Mar 5 18:19:27 UTC 2019 New revision: 344803 URL: https://svnweb.freebsd.org/changeset/base/344803 Log: MFC r343407: freebsd-update: open $PAGER only if necessary PR: 194547, 208497 Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> Reviewed by: delphij Sponsored by: The FreeBSD Foundation Changes: _U stable/12/ stable/12/usr.sbin/freebsd-update/freebsd-update.sh
A commit references this bug: Author: emaste Date: Tue Mar 5 18:20:17 UTC 2019 New revision: 344804 URL: https://svnweb.freebsd.org/changeset/base/344804 Log: MFC r343407: freebsd-update: open $PAGER only if necessary PR: 194547, 208497 Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> Reviewed by: delphij Sponsored by: The FreeBSD Foundation Changes: _U stable/11/ stable/11/usr.sbin/freebsd-update/freebsd-update.sh