This is the mail archive of the
mailing list for the Cygwin project.
RE: Upgraded man command
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Andy Hall <ahall at konaware dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 23 Nov 2004 16:22:23 -0500 (EST)
- Subject: RE: Upgraded man command
- References: <E1CWh59-0007wLemail@example.com>
- Reply-to: cygwin at cygwin dot com
On Tue, 23 Nov 2004, Andy Hall wrote:
> Igor -
> Thanks for the reply. This is a complete mystery to me. See answers to your
> questions below.
> -----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
> 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 of
> > > cygwin and the man command started to display man pages as follows:
> > >
> > > ESC[1mNAMEESC[0m
> > > ln - make links between files
> > >
> > > ESC[1mSYNOPSISESC[0m
> > > 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[4mDIRECTORYESC[0m
> > > 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 to
> > > 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 to
> > > 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/man.sh.done (not /etc/postinstall/man.sh).
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
> 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 by
> 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.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,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: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html