pkglocate --help enters a loop of `grep --help`
by checking the argument before passing it to grep. Please note that
"grep -e" can't be used because of Solaris options, although I hope to
address that in the next commit.
in /bin/grep, others in /usr/xpg4/bin/grep. Since we don't have access
to pkgsrc's variables, rely on grep(1) being in the PATH.
Noted by Roland Illig on tech-pkg.
directories are empty, and may get pruned by "cvs [checkout|update]
-P" - check for a category Makefile to work out whether a directory
houses a category, or is some other part of the infrastructure.
the package description files, using approximate matching.
# Locate words in description, or files in the PLISTs
#
# [-i] == ignore case when searching
# [-f] == look for a file, rather than a word or phrase
# [-p] == use approximate matching
# [-v] == be verbose
#
# Usage: pkglocate [-i] [-p] [-f] [-v] word