man - please wait!

Jim Jagielski jim at jagubox.gsfc.nasa.gov
Sat Nov 17 04:12:33 AEST 1990


In article <1526 at berlioz.nsc.com> mikel at berlioz.UUCP (Michael G. Lohmeyer) writes:
>In article <3919 at dftsrv.gsfc.nasa.gov> jim at jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
>>Once I added "export TERM" right above the "now print out pages" line in
>>/usr/bin/man, pg works fine!
>
>      /* some changes to /usr/bin/man deleted for space */
>
>(along with a slightly different comment above it).  This may work fine
>for the pg command, but ul in front of my less gave me a lot of garbage,
>so I made the change above and it seems to work great.  I didn't even
>have to export the TERM variable as Jim suggested.  I am running A/UX V2.0
>in case it matters.
>


The problem with TERM seems to only take affect when one is using the -T
option to man...

For example, -Tlp prints out some garbage when using pg (don't know about
less, have to try it out) and piping the output to lpr.

As I understand it, eval spawns a shell to run it's argument. Although
TERM in defined in man, it's not exported to the eval shell, although
the TERM of the main process (ie. me, when calling man) is exported (as things
are set up on my Mac)... so the pager sees MY TERM, and not man's, unless
TERM is exported to pager.

At least, I think so ;)
--
=======================================================================
#include <std/disclaimer.h>
                                 =:^)
           Jim Jagielski                    NASA/GSFC, Code 711.1
     jim at jagubox.gsfc.nasa.gov               Greenbelt, MD 20771

"Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach
 the very, very top, and then it tends to slope away rather sharply."



More information about the Comp.unix.aux mailing list