Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!usc!elroy.jpl.nasa.gov!ames!dftsrv!jagubox.gsfc.nasa.gov!jim From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski) Newsgroups: comp.unix.aux Subject: Re: man - please wait! Message-ID: <3940@dftsrv.gsfc.nasa.gov> Date: 16 Nov 90 17:12:33 GMT References: <3918@dftsrv.gsfc.nasa.gov> <3919@dftsrv.gsfc.nasa.gov> <1526@berlioz.nsc.com> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski) Organization: NASA/Goddard Space Flight Center Lines: 37 In article <1526@berlioz.nsc.com> mikel@berlioz.UUCP (Michael G. Lohmeyer) writes: >In article <3919@dftsrv.gsfc.nasa.gov> jim@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 =:^) Jim Jagielski NASA/GSFC, Code 711.1 jim@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."