On Sun, 18 Apr 2010 20:55:57 +0100 Stuart Henderson <[email protected]> wrote:
> On 2010/04/18 14:38, Antti Harri wrote: > > >It still makes more sense to just match 'filename', either > > >directory or regular file, as currently (but incorrectly) stated > > >in the man page. It's the path of least surprise. > > > > You can already do that with the help of pkg_mklocatedb(1). > > > > For a quick use of the resulting database I have: > > alias pkg_find="locate -d /home/iku/ports.db" > > See also ports/databases/pkglocatedb and the associated package if > you don't want to build your own (or can't build your own because your > ports tree is full of Ms and Cs...) Thanks for the input, but it seems I was not clear. I already know a few ways to do what I want so that's not the issue. My *real* questions are: 1.) Should I fix the documentation of the -E switch? 2.) Should I fix the code of the -E switch to match the docs? 3.) Should the -E switch be removed since there are other ways? One of the above is the right answer, but I don't know which is the best/preferred way to handle it. I'll happily do the work and submit a patch but it makes sense to ask first how it should be done. -- The OpenBSD Journal - http://www.undeadly.org
