DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-09-28 05:25:47

puterboy
Member
Registered: 2008-09-18
Posts: 306

man command broken -- looks for none/usr/bin/less not /ffp/bin/less

AS REGULAR USER:
$ man man
/usr/bin/less: No such file or directory
Error executing formatting or display command.
System command /ffp/bin/bzip2 -c -d /ffp/share/man/cat1/man.1.bz2 | /usr/bin/less exited with status 32512.

$man /ffp/bin/bzip2 -c -d /ffp/share/man/cat1/man.1.bz2
<displays man page

$ which less
/ffp/bin/less

$ ls /usr/bin/less
ls: /usr/bin/less: No such file or directory

Presumably to fix this either the man command should be recompiled to point to /ffp/bin/less or a link should be added to /usr/bin to point to /ffp/bin/less.

INTERESTINGLY the 'man' command works if you are 'root' (even though for me both root and regular user have the same path).

Offline

 

#2 2008-09-28 12:26:50

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: man command broken -- looks for none/usr/bin/less not /ffp/bin/less

puterboy wrote:

AS REGULAR USER:
$ man man
/usr/bin/less: No such file or directory
...
INTERESTINGLY the 'man' command works if you are 'root' (even though for me both root and regular user have the same path).

Works fine here (both as root and user). Afaict, less is determined from /ffp/etc/man.conf, or the MANPAGER or PAGER environment variables.

Code:

       MANPAGER
              If MANPAGER is set, its value is used as the name of the program to use to display the man page.  If not, then PAGER is used. If that has no value either, /usr/bin/less -is is
              used.

/ffp/etc/man.conf contains

Code:

PAGER           /ffp/bin/less -isR

I can reproduce your error message when I set PAGER or MANPAGER environment variables to /usr/bin/less. Check your ~/.profile

Offline

 

#3 2008-09-28 23:07:33

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: man command broken -- looks for none/usr/bin/less not /ffp/bin/less

OMG - that was dumb. I had set the variable PAGER in my original .profile script on an old DEC Unix system maybe 20 years ago when the default pager was 'more' and 'less' was the new and better kid on the block. I have just simply copied that part of my profile (now in .bash_profile) over to each successive system without even thinking about it. I feel stupid for not having caught this and for wasting your time...

Still though I am intrigued why this error didn't occur as user root (even though root uses the same .bashrc_profile). In fact, it seems that root ignores the variable PAGER (or MANPAGER), even when I manually set it to /usr/bin/less (or even /bin/false), it still works. Same is true with the "-p" command line flag. Hmmmm.....

Offline

 

#4 2008-09-29 00:10:03

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: man command broken -- looks for none/usr/bin/less not /ffp/bin/less

puterboy wrote:

I feel stupid for not having caught this and for wasting your time...

No problem. Feedback is always welcome, even if turns out to be a false alarm.

puterboy wrote:

Still though I am intrigued why this error didn't occur as user root (even though root uses the same .bashrc_profile). In fact, it seems that root ignores the variable PAGER (or MANPAGER), even when I manually set it to /usr/bin/less (or even /bin/false), it still works. Same is true with the "-p" command line flag. Hmmmm.....

It's -P (not -p). Works here, too. 'man -P', export MANPAGER, export PAGER all seem to work fine for root. I also couldn't find any special treatment for root in the man sources.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB