Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] skeleton: drop PAGER
@ 2019-09-06  9:25 Lubomir Rintel
  2019-09-07 19:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Lubomir Rintel @ 2019-09-06  9:25 UTC (permalink / raw)
  To: buildroot

There doesn't seem to be possible to track down the reason why the  profile
sets $PAGER other than that it has always been there.

However, it defeats pager autodetection by various tool (systemctl, nmcli,
etc.) that would otherwise prefer less to more, in case both were available.

Let's drop it. My desktop Linux distro (Fedora) doesn't seem to set it
either and the universe doesn't seem to have collapsed yet.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/system/skeleton/etc/profile b/system/skeleton/etc/profile
index db29e44920..0545277086 100644
--- a/system/skeleton/etc/profile
+++ b/system/skeleton/etc/profile
@@ -8,7 +8,6 @@ if [ "$PS1" ]; then
 	fi
 fi
 
-export PAGER='/bin/more'
 export EDITOR='/bin/vi'
 
 # Source configuration files from /etc/profile.d
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] skeleton: drop PAGER
  2019-09-06  9:25 [Buildroot] [PATCH] skeleton: drop PAGER Lubomir Rintel
@ 2019-09-07 19:58 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-09-07 19:58 UTC (permalink / raw)
  To: buildroot

On Fri,  6 Sep 2019 11:25:09 +0200
Lubomir Rintel <lkundrak@v3.sk> wrote:

> There doesn't seem to be possible to track down the reason why the  profile
> sets $PAGER other than that it has always been there.
> 
> However, it defeats pager autodetection by various tool (systemctl, nmcli,
> etc.) that would otherwise prefer less to more, in case both were available.
> 
> Let's drop it. My desktop Linux distro (Fedora) doesn't seem to set it
> either and the universe doesn't seem to have collapsed yet.
> 
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
> ---
>  system/skeleton/etc/profile | 1 -
>  1 file changed, 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-07 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-06  9:25 [Buildroot] [PATCH] skeleton: drop PAGER Lubomir Rintel
2019-09-07 19:58 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox