Skip to contentSkip to conversation

skeleton: drop PAGER

PATCH New Lubomir Rintel 2 participants 2 messages Sep 6, 2019 – Sep 7, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 skeleton: drop PAGER

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.

---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)
system/skeleton/etc/profile +0 -1
index db29e44920..0545277086 100644
@@ -8,7 +8,6 @@ if [ "$PS1" ]; then
 	fi
 fi
 
-export PAGER='/bin/more'
 export EDITOR='/bin/vi'
 
 # Source configuration files from /etc/profile.d
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 skeleton: drop PAGER

Quoted 6 lines · On Fri, 6 Sep 2019 11:25:09 +0200 Lubomir Rintel <[email protected]> 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.

Quoted 7 lines

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.

---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com