Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-20-2003, 02:33 PM   #1
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
MANPAGER=/usr/bin/less -isM... M, I said!!

I edited .bashrc to export -isM. No dice. So naturally, editing /etc/profile to include -isM didn't work. Nor did just -M. Not even running man with the command line -P switch. I did a web search and turned up nothing. Searched two boards and got back 2 results at each, none of which were relevant. Any help?

All I want is

foo lines 1-23/389 2%

instead of

lines 1-23

I hate not knowing if I'm opening a man *page* or a man *book* and whether I can take the time to read the whole thing or need to make some major time to do so. I could get the filesize or scroll to the end or whatever, but it's the principle of the thing. Why does something as simple as this not work? Is man even using less? The man pages and environment variables says it is and I got an error when I tried zless for the hell of it.

While I'm at it, is there any reason I can't delete all the internationalized man pages in /usr/man? Wasting space, extending search times, and utterly useless to me. Thanks.
Old 10-20-2003, 04:02 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Isn't your lesspipe defined in /etc/profile.d/less.* ?
Old 10-21-2003, 01:29 AM   #3
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
Nope. But it is in /usr/bin. ( I don't understand this. If it's using a preprocessor, that means less can't know how big the file is, as it's being piped on the fly. But if I disable the script or unset the environmental variable, it looks like I'd screw up all kinds of things.

Thanks for letting me know I was barking up a wrong tree (I should have figured it out myself but seem remarkably brain damaged lately) but I'm still not sure what I should do. More or less or zmore or zless or lessopen or profile or bashrc or PAGER or MANPAGER or LESSPIPE or.... or... or... Anyway, as far as I can tell, it's a preprocessor that clobbers any switch I want to add, but I don't see how to edit the script or work around it properly.

The longer I try to use Linux the more I hate it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration