This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Upgraded man command

Perhaps not everything is as it should be....

1. /bin/manpath.exe is missing
2. /etc/postinstall/ is there but it was modified on a date
preceding the date I upgraded.
3. No errors for in /var/logs/setup and it shows it was run.

But.... I simply copied the man.conf.default to man.conf, ensured the
options matched yours and it now works.  Go figure.

Thanks for the help.


-----Original Message-----
From: Igor Pechtchanski [] 
Sent: Tuesday, November 23, 2004 1:22 PM
To: Andy Hall
Subject: RE: Upgraded man command

On Tue, 23 Nov 2004, Andy Hall wrote:

> Igor -
> Thanks for the reply. This is a complete mystery to me.  See answers to
> questions below.
> Andy
> -----Original Message-----
> From: Igor Pechtchanski [mailto:pechtcha@XX.XXX.XXX]
> Sent: Tuesday, November 23, 2004 9:46 AM
> To: Andy Hall
> Cc: cygwin@XXXXXX.XXX

<>.  Thanks.

> Subject: Re: Upgraded man command
> > On Tue, 23 Nov 2004, Andy Hall wrote:
> >
> > > I updated my cygwin system on my W2K SP4 systemto the latest release
> > > cygwin and the man command started to display man pages as follows:
> > >
> > > ESC[1mNAMEESC[0m
> > >        ln - make links between files
> > >
> > >        ESC[1mln ESC[22m[ESC[4mOPTIONESC[24m]... ESC[4mTARGETESC[24m
> > > [ESC[4mLINK_NAMEESC[24m]
> > >        ESC[1mln ESC[22m[ESC[4mOPTIONESC[24m]... ESC[4mTARGETESC[24m...
> > >        ESC[1mln ESC[22m[ESC[4mOPTIONESC[24m]...
> > > ESC[4m--target-directory=DIRECTORYESC[24m ESC[4mTARGETESC[24m...
> > >
> > > Interestingly, the man pages previously cached in /usr/man/cat1 seem
> > > format just fine.  If I remove the cached version, I get something
akin to
> > > the above.
> > >
> > > I suspect this is some sort of setup problem, but I have been unable
> > > track it down.  All involved commands seem to be up-to-date.
> >
> > I see that neither of MANPAGER, PAGER, and LESS is set in your
> > environment.
> Right.  I use a pretty vanilla system for testing a fairly large messaging
> system.  I tend to stay away from environment variables if I can.
> > Are you running straight "man", or is it aliased to
> > something?
> Straight man.
> > Is your /usr/share/misc/man.conf different from
> > /usr/share/misc/man.conf.default?
> There is no /usr/share/misc/man.conf.  Do I need one?  I should think not.

You do, actually.  It was supposed to have been created by the "man"
postinstall script.  Since you don't have it, I assume the postinstall
scripts didn't run correctly, and so you might have a misconfigured

Check if you have a /bin/manpath.exe as a symlink to man.exe.  Also check
that you have a /etc/postinstall/ (not /etc/postinstall/
If you happened to not run setup.exe after that upgrade, please also look
in /var/log/setup.log.full to see if you got any error messages from

> > If it is, the differences might give you a clue as to what went wrong.
> >  What is the output of "man -cd ln | tail -1"?
> Well the tail -1 did not work so the output of man -d must be on stderr.

Umm, yeah, sorry, that should have been "man -cd ln 2>&1 | tail -1".

> Any way the last lines are:
> not executing command:
>   (cd "/usr/man" && (echo ".pl 11i"; cat '/usr/man/man1/ln.1') |
/usr/bin/tbl | /usr/bin/groff -Tascii -mandoc | less -is)

Aha.  There you go.  It's the -Tascii that's the problem, as well as the
less flags.  In my installation, the command is as follows:

  (cd "/usr/man" && (echo ".pl 11i"; /usr/bin/cat '/usr/man/man1/ln.1') |
/usr/bin/tbl | /usr/bin/nroff -c -mandoc | /usr/bin/less -isrR)

The commands above come from /usr/share/misc/man.conf, so yes, you do
need it.

> I do know from experimentation that the zipped versions of the man pages
> produced by the updated man command are different from the ones produced
> the old man command.

I'm not sure what you mean.  The zipped versions of the man pages aren't
produced by the man command.  They are used as inputs to the man command.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]