mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-30 05:08:58 +01:00
9986eefc623f51b529e983872db5fc72c4ea9ae5
Savannah bug #23920: warn about -path arguments ending in /. * find/parser.c (insert_path_check): new function; abstracts the common functionality of parse_path, parse_ipath, parse_wholename, parse_iwholename. Also check for a trailing slash and warn about it (unless $POSIXLY_CORRECT is set). Don't warn if the pattern also happens to be a start_point, because those could be matched. (parse_path, parse_ipath, parse_wholename, parse_iwholename): Use insert_path_check. * find/tree.c (is_start_point): new function; returns true if the indidated string matches a start point. (num_start_points, start_points): new variables, storing the starting points listed on the command line. (build_expression_tree): Set num_start_points and start_points. * find/defs.h: Declare is_start_point. * doc/find.texi (Full Name Patterns): Explain that candidate names for -path, -regex etc. will never end in a slash, so "-path /tmp/" will never match anything. * find/find.1: Likewise.
Check gnulib out with native git, rather than git-cvspserver. This fixes Savannah bug #21568, for the second time.
This package contains the GNU find, xargs, and locate programs. find and xargs comply with POSIX 1003.2, as far as I know (with the exception of the "+" modifier for the "-exec" action, which isn't implemented yet). They also support a large number of additional options, some borrowed from Unix and some unique to GNU. See the file NEWS for a list of major changes in the current release. See the file INSTALL for compilation and installation instructions. To verify the GPG signature of the release, you will need the public key of the findutils maintainer. You can download this from ftp://ftp.gnu.org/gnu/gnu-keyring.gpg. Alternatively, you could query a PGP keyserver, but you will need to use one that can cope with subkeys containing photos. Many older key servers cannot do this. I use subkeys.pgp.net. I think that one works. See also the "Downloading" section of http://www.gnu.org/software/findutils/. Special configure options: --with-afs Make find support "-fstype afs". Requires /afs, /usr/afsws/lib, and /usr/afsws/include. configure doesn't add AFS support automatically because it adds considerably to find's size, and the AFS libraries need -lucb on Solaris, which breaks find. --enable-id-cache Make tables of used UIDs and GIDs at startup instead of using getpwuid or getgrgid when needed. Speeds up -nouser and -nogroup unless you are running NIS or Hesiod, which make password and group calls very expensive. --enable-debug Produce output on the standard error output indicating what find is doing. This information includes details about how the command line has been parsed and what files have been stat()ed. This output is normally interesting only to the maintainer, and so is off by default. DEFAULT_ARG_SIZE=<value> If this environment variable is defined to a numeric expression during configure, it determines the default argument size limits used by xargs without -s, and by find, when spawning child processes. Otherwise, the default is set at 128 kibibytes. If the system cannot support the default limit, the system's limit will be used instead. To gain speed, GNU find avoids statting files whenever possible. It does this by: 1. Checking the number of links to directories and not statting files that it knows aren't directories until it encounters a test or action that needs the stat info. 2. Rearranging the command line, where possible, so that it can do tests that don't require a stat before tests that do, in hopes that the latter will be skipped because of an OR or AND. (But it only does this where it will leave the output unchanged.) The locate program and its helper programs are derived (heavily modified) from James Woods' public domain fast-find code, which is also distributed with the 4.3BSD find. Because POSIX.2 requires `find foo' to have the same effect as `find foo -print', the fast-find searching has been moved to a separate program, `locate'; the same thing has been done in 4.4BSD. If you use locate, you should run the included `updatedb' script from cron periodically (typically nightly). Mail suggestions and bug reports for these programs to bug-findutils@gnu.org.
Description
Languages
C
55.2%
Shell
14.4%
Roff
11.2%
Logos
9.6%
Makefile
4.7%
Other
4.9%