> 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

Reply via email to