Bug 637199 - rpm should use $PAGER and the like (eg: like "git log" does)
Summary: rpm should use $PAGER and the like (eg: like "git log" does)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 14
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 15:05 UTC by Thierry Vignaud
Modified: 2011-01-31 09:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-01-31 08:59:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thierry Vignaud 2010-09-24 15:05:04 UTC
Description of problem:
For options that are known to output quite a lot of data, rpm shoulduse $PAGER, $LESSOPEN and the like in order to not flood the console.
Eg:  rpm -q --changelog, rpm -qa, ...

Version-Release number of selected component (if applicable):
rpm-4.8.1-5.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. run "rpm -q --changelog rpm"
2.
3.
  
Actual results:
console is flooded and only

Expected results:
A nice enhancement would be to automatically use more/less/... like eg man does

Additional info:

Comment 1 Panu Matilainen 2011-01-31 08:59:52 UTC
Sorry but not going to happen. Rpm is not the kind of interactive tool as eg 'man' is, and automatic pager invocation is IMO nothing but annoying distraction to unix tradition. Things like 'ls' dont use automatic paging either.

Comment 2 Thierry Vignaud 2011-01-31 09:37:41 UTC
Sorry to hear this.

I will try one last argument : think of "rpm -q --changelog" as "git log".
Both provides the same kind of data (history).

The later is more usefull in the sense that when it detects an interactive shell, it automatically uses a pager.


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