Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!pacbell.com!amdahl!amdahl!agc From: agc@uts.amdahl.com (Alistair G. Crooks) Newsgroups: comp.os.386bsd.bugs Subject: NetBSD 0.9 kernfs feature & whatis.db generator Message-ID: <8eWA03X=daw000@amdahl.uts.amdahl.com> Date: 16 Sep 93 16:41:07 GMT References: <89at03uedatl00@amdahl.uts.amdahl.com> Organization: Amdahl Corporation, Sunnyvale CA Lines: 37 1. NetBSD 0.9 has the new kernfs feature. I'm sure it's nice, but when I do an "ls -lR /", I soon get into a loop because of kernfs. It goes all the way into /kern/root fine, and then seems to recurse through the directories, so that eventually it's listing /kern/root/kern/root/kern/root/kern/root/kern/root I've not had the patience to let it continue to see how far it will go, but I assume that this will continue almost ad infinitum. Any comments? 2. A small shell script to make the whatis.db file (there's a makewhatis.sed file in the /usr/share/man directory, but I can't find anything else to do this, and as apropos doesn't work until the whatis.db file is built...). Go to the usr/share/man directory, and, as root, execute the shell file that appears after my signature below. Of course, I'm perfect as well, and never need to use apropos... Alistair -- Alistair G. Crooks (agc@uts.amdahl.com) +44 252 346377 Amdahl European HQ, Dogmersfield Park, Hartley Wintney, Hants RG27 8TE, UK. [These are only my opinions, and certainly not those of Amdahl Corporation] #! /bin/sh # mkwhatisdb file - to be executed as root in the man directory # Usage: mkwhatisdb for i in 1 2 3 4 5 6 7 8; do cat cat$i/* | sed -f makewhatis.sed | sort | uniq |\ sed "s:\(SYNOPSIS\):$i:g" > out$i echo "Section $i done" done cat out? | sort > whatis.db rm out?