on my Redhat 6.2 and 7.0 machines, i get this error:

[ssen@ssen ssen]$ man nmh
<standard input>:7: won't source `/usr/local/nmh/etc/tmac.h' outside of 
`/usr/local/nmh/man' without -U flag
...

It displays something, but it's missing a lot of content and misformatted.
Apparently the man (or troff, depending on how deep you analyze) that
ships with Redhat does not like sourcing files outside the man paths.
Have other people experienced this? 

It appears not to affect Solaris, probably because it uses a different
man. Two solutions present themselves:

1) Move tmac.h into ${prefix}/man which should continue
   working on all current platforms. Also, it's new location
   is more indicative of it's use

2) Inline the macros from tmac.h into the top of all man
   files. Our source can still have it as a separate file
   to maintain coding modularity, but the installed man files
   would all have tmac.h prepended.

One large benefit of 2) is that it removes the dependance
of the manfiles on an external macro file, which is
unneccessarily complex. Also, it fixes compatibility
with mans ("men" may be the proper term) that only allow
source files from specific places.

>From what I can see, this problem has been around for a long
time. We should definitely do something about it.

Shantonu

*-------------------------------------------*
|Shantonu Sen * (617)225-7269 * [EMAIL PROTECTED]|
|Electrical Engineering and Computer Science|
|Massachusetts Institute of Technology, 2002|
*-------------------------------------------*

Reply via email to