From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8cefe3fb1371de564710c70ce6736367@quanstro.net> From: erik quanstrom Date: Mon, 30 Mar 2009 09:09:04 -0400 To: 9fans@9fans.net In-Reply-To: <5fb3d6f8-7e0d-424e-b823-848c450cfdfe@d19g2000yqb.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] getting message need /sys/man/2/genrandom Topicbox-Message-UUID: cce24790-ead4-11e9-9d60-3106f5b1d025 > term% pull > post... > c sys/man/2/rand > a sys/man/2/genrandom 664 sys sys 1196638940 > c 386/lib/ape/libap.a > c sys/src/boot/pc/ether82563.c > term% man genrandom > need /sys/man/2/genrandom > term% man genrandom > need /sys/man/2/genrandom that is very strange. "need $x" is printed when test -f $x fails. this test is to guard against the case where the man page exists in the section index (/sys/man/?/INDEX) but doesn't exist. test -f is false if dirstat returns nil or the file is a directory. unless of course, you /bin/test is something different than /386/bin/test sum /386/bin/test /bin/test should produce two identicial lines. on my system with ken's fs, there's no way to make test -f false and be able to read the index. perhaps there is some wierd mode setting on fossil that makes this possible. i think ls -ld /sys/man/2^('' INDEX genrandom) would likely provide the answer. - erik