RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 978841 - RFE: add comment 'export SYSTEMD_PAGER="' line to /etc/skel/.bash_profile
Summary: RFE: add comment 'export SYSTEMD_PAGER="' line to /etc/skel/.bash_profile
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: bash
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Oprala
QA Contact: Iveta Wiedermann
URL:
Whiteboard:
Depends On:
Blocks: 959971
TreeView+ depends on / blocked
 
Reported: 2013-06-27 08:12 UTC by Petr Sklenar
Modified: 2016-02-01 02:09 UTC (History)
6 users (show)

Fixed In Version: bash-4.2.45-2.el7
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-18 13:21:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2013-06-27 08:12:50 UTC
Description of problem:
pager does not fit to everyone, please thing about some way to switch it off like SYSTEMD_PAGER="" into bash login.
It could be turn-on by default, but user could see how to switch it off

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:
add directive SYSTEMD_PAGER to visible file

Additional info:

Comment 2 Harald Hoyer 2013-06-27 11:09:37 UTC
(In reply to Petr Sklenar from comment #0)
> Expected results:
> add directive SYSTEMD_PAGER to visible file

you mean in /etc/skel/.bashrc or /etc/skel/.bash_profile or /etc/bashrc??

$ rpm -qf /etc/skel/.bashrc
bash-4.2.45-1.fc19.x86_64
$ rpm -qf /etc/bashrc 
setup-2.8.71-1.fc19.noarch

Comment 3 Petr Sklenar 2013-06-27 13:07:07 UTC
(In reply to Harald Hoyer from comment #2)
> (In reply to Petr Sklenar from comment #0)
> > Expected results:
> > add directive SYSTEMD_PAGER to visible file
> 
> you mean in /etc/skel/.bashrc or /etc/skel/.bash_profile or /etc/bashrc??
> 
> $ rpm -qf /etc/skel/.bashrc
> bash-4.2.45-1.fc19.x86_64
> $ rpm -qf /etc/bashrc 
> setup-2.8.71-1.fc19.noarch

I was about /etc/bashrc or maybe better ~/.bash_profile (so /etc/skel/.bash_profile). But don't know what's the better/more visible place (the both :) )


fyi once we talked to systemd developers and its in their todo list:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=3679d1126bae52e02f6cd60fca196f616b9e660d

Comment 5 Lennart Poettering 2013-07-11 21:17:17 UTC
This really sounds like something to reassign to the bash package.

Bash folks, can we convince you to add the (commented!) lines

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=''

to /etc/skel/.bash_profile?

That way, people who really hate the git-style auto-paging systemctl does can easily discover how to turn it off.

Comment 6 Roman Rakus 2013-07-23 16:09:38 UTC
Hmm, I don't know. Currently there isn't any suggestions. Do we really need to start it with SYSTEMD_PAGER?
Ah, but ok, it will not hurt anyone.

Comment 7 Roman Rakus 2013-07-23 16:17:01 UTC
(In reply to Lennart Poettering from comment #5)
> This really sounds like something to reassign to the bash package.
yep
> 
> Bash folks, can we convince you to add the (commented!) lines
yep
> 
> # Uncomment the following line if you don't like systemctl's auto-paging
> feature:
> # export SYSTEMD_PAGER=''
> 
> to /etc/skel/.bash_profile?
I think .bashrc is better - Usually I'm editing bashrc, which is executed when bash is not run as login shell.
> 
> That way, people who really hate the git-style auto-paging systemctl does
> can easily discover how to turn it off.
Hmm, really easily? I will not be trying to find anything about systemd configuration in bashrc.

Anyway, some configuration options is ok to have in bashrc. I think people will like such suggestions.

Comment 8 Roman Rakus 2013-08-09 11:50:03 UTC
Fixed in bash-4.2.45-2.el7

Users should see suggestion in ~/.bashrc


Note You need to log in before you can comment on or make changes to this bug.