> On 11. Jun 2021, at 00:42, Cameron Katri via freebsd-current > <freebsd-current@freebsd.org> wrote: > > On 6/10/21 6:26 PM, Kevin Oberman wrote: >> I have never seen it return anything from /usr/src. > > It seems to return stuff from /usr/src for me > > whereis cc > cc: /usr/bin/cc /usr/share/man/man1/cc.1.gz > /usr/src/contrib/netbsd-tests/usr.bin/cc > > Although I question the validity of that response. But other times it works > fine. >
Again, (among other ways) it does so using locate, see https://lists.freebsd.org/archives/freebsd-current/2021-June/000193.html -m > > whereis whereis > whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz > /usr/src/usr.bin/whereis > >>> whereis cc >> cc: /usr/bin/cc /usr/share/man/man1/cc.1.gz >>> whereis postfix >> postfix: /usr/local/sbin/postfix /usr/local/man/man1/postfix.1.gz >> /usr/ports/mail/postfix >> -- >> Kevin Oberman, Part time kid herder and retired Network Engineer >> E-mail: rkober...@gmail.com >> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > > - Cameron Katri