Date: Sun, 9 Apr 1995 05:02:36 +0800 (CST) From: Brian Tao <taob@gate.sinica.edu.tw> To: FREEBSD-CURRENT-L <freebsd-current@FreeBSD.org> Subject: Re: man(1) bug Message-ID: <Pine.BSI.3.91.950409045746.2012C-100000@aries.ibms.sinica.edu.tw> In-Reply-To: <199504081926.MAA15834@gndrsh.aac.dev.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's a simple patch that fixes the manpage-starting-with-a-number bug and the can't-find-the-[-man-page-bug. The second fix is really kludgy at the moment, but it's almost 5 am and I spent the last three hours on IRC walking a user through a new FreeBSD installation on his notebook with a zp0 PCMCIA network card, only to find out from a DOS diag utility that the card is toast. :( Anyhow, I'll try to come up with something cleaner tomorrow or the day after... oh, this is applied to /usr/src/gnu/usr.bin/man/man/man.c. 461c461 < if ((strcmp (*vs, name) == NULL) || (isdigit (name[0]))) --- > if ((strcmp (*vs, name) == NULL) || (isdigit (name[0]) && strlen(name) == 1)) 593c593 < sprintf (pathname, "%s/cat%s/%s.%s*", path, section, name, section); --- > sprintf (pathname, "%s/cat%s/\\%s.%s*", path, section, name, section); 595c595 < sprintf (pathname, "%s/man%s/%s.%s*", path, section, name, section); --- > sprintf (pathname, "%s/man%s/\\%s.%s*", path, section, name, section); 605c605 < sprintf (pathname, "%s/cat%s/%s.%c*", path, section, name, *section); --- > sprintf (pathname, "%s/cat%s/\\%s.%c*", path, section, name, *section); 607c607 < sprintf (pathname, "%s/man%s/%s.%c*", path, section, name, *section); --- > sprintf (pathname, "%s/man%s/\\%s.%c*", path, section, name, *section); 614c614 < sprintf (pathname, "%s/cat%s/%s.0*", path, section, name); --- > sprintf (pathname, "%s/cat%s/\\%s.0*", path, section, name); 616c616 < sprintf (pathname, "%s/man%s/%s.0*", path, section, name); --- > sprintf (pathname, "%s/man%s/\\%s.0*", path, section, name); -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.950409045746.2012C-100000>