summaryrefslogtreecommitdiff
path: root/usr.bin/find
AgeCommit message (Collapse)Author
2012-01-05-execdir only supports the first form of -exec with ; suffix, not the newStuart Henderson
form with {} + suffix; make this clear in the manual. Text suggested by jmc@
2012-01-05Fix typos in comment (s,exacty,exactly,)Stuart Henderson
2012-01-03- use more consistent markupJason McIntyre
- reformat the list of primaries such that the two -exec items are listed without vertical whitespace seperating them
2012-01-02Add support for "find ... -exec foo {} \+".Pascal Stumpf
From the manpage: If terminated by a plus sign (``+''), the pathnames for which the primary is evaluated are aggregated into sets, and utility will be invoked once per set, similar to xargs(1). If any invocation exits with non-zero exit status, then find will eventually do so as well, but this does not cause find to exit early. The string ``{}'' must appear, and must appear last. Each set is limited to no more than 5,000 pathnames, and is also limited such that the invocation of utility does not exceed ARG_MAX. Code comes from NetBSD, written by John Hawkinson. Tested by eivinde at terraplane dot org and myself for quite some time. ok miod@
2011-06-14exit if there is an unknown option; from FreeBSDChristian Weisgerber
ok millert@
2011-04-21find: return exit code 1 if any path could not be traversedJacek Masiulaniec
matches posix and the manual, ok millert
2011-02-13As noticed by Clint Pachl <pachl at ecentryx dot com>,Ingo Schwarze
it is easy to miss a blank character in an example, so explicitely state that whitespace causes the issue; while here, mention that shell metacharacters cause danger as well; ok otto@ sthen@ jmc@
2010-12-01Don't error out if we can't opendir() when -empty is used.Todd C. Miller
Fix by Bakul Shah. OK deraadt@ halex@
2010-09-29various EXIT STATUS fixes; from Daniel DickmanJason McIntyre
2010-09-20oops! missing quote in previous;Jason McIntyre
2010-09-19Shorten text pointing from -X to -print0.Ingo Schwarze
Add pointer from -print0 to xargs(1). Add an EXAMPLE to demonstrate \( ... -or ... \) -print0. Stop advertising -print | xargs, which is dangerous. Add a CAVEAT about passing find(1) output to other programs. Mostly from joachimschipper dot nl; using feedback from jmc@ and sthen@, and tweaked myself; ok jmc@
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2010-02-03make it clear that -iname supports globbing;Ingo Schwarze
refer to glob(7) for more precision; add some relevant and remove some not so relevant .Xrs; ok jmc@
2009-12-20Use the standard wording, requested by jmc@.Ingo Schwarze
Actually, this is much closer to the original submission by Daniel Dickmann.
2009-12-20find -LH was -L, but must be -H according to POSIX;Ingo Schwarze
patch from Daniel Dickman <didickman at gmail dot com> via tech@, though i'm updating the manual in a different way; ok millert@ "looks good" deraadt@
2009-12-09We only need to fchdir(dotfd) for the -exec and -ok primaries soTodd C. Miller
defer the check for dotfd != -1 until we know we will need it. Based on a diff from schwarze@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-16Allow -maxdepth 0; noticed by bluhm@Todd C. Miller
2009-08-27Don't stop traversing a directory hierarchy if we reach SHRT_MAX,Todd C. Miller
just stop updating fts_level so we don't overflow it. This allows rm, find, etc to operate on very deep hierarchies. Consumers of fts(3) do need to be aware that the actual level may be larger than fts_level. During the next libc major bump we will make fts_level an int instead of a short. OK deraadt@
2009-04-09min/maxdepth do not observe +-;Jason McIntyre
reported by x, but different fix taken
2009-02-08updates to IEEE Std 1003.1-2008;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-28since -g is always overridden by -l in ls(1), the equivalent of theJason McIntyre
-ls primary is better described as "ls -dils" than "ls -dgils";
2008-09-29Add a missing `|' to the description of -perm.Matthias Kilian
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-05-10ftsopen -> fts_open; partly from Alexander Holupirek, documentation/5472Jason McIntyre
ok simon art
2006-12-26fts_read returning NULL and errno set is an error. ok ray@Otto Moerbeek
2006-10-11hmm, slightly reword the previous to sound less like a susv3 cut/paste,Jason McIntyre
thus also avoiding a line split that was annoying me;
2006-10-11some important information about how find(1) works was tucked awayJason McIntyre
under -print, and slightly inaccurate anway; move it up into DESCRIPTION and correct it; from otto and myself
2006-10-11improve markup a wee bit;Jason McIntyre
2006-10-11a little macro cleanup;Jason McIntyre
2006-10-11Suggest to use xargs(1) and give an example; started by jmc, ok jmc@Otto Moerbeek
2006-10-11in EXAMPLES:Jason McIntyre
- make the first example positive (we have enough using `!') - remove second example (it is too similar to others) - remove `-print' from all examples - put the examples in a more logical order - no need to escape dot, as otto points out i have been escaping it needlessly for years ;( ok otto
2006-10-11for -depth, -follow, and -xdev, note that they always evaluate to true;Jason McIntyre
ok otto
2006-10-10get the spacing right for -ok too; i missed this in my previous commit.Jason McIntyre
2006-10-10get the spacing right for -exec and -execdir; ok ottoJason McIntyre
2006-10-10add an example of -exec {} and remove a less useful example; ok ottoJason McIntyre
2006-10-05-iname is a primary, not an option. ok jmc@Otto Moerbeek
2006-10-05document -depth and -xdev: although we have options which do the same,Jason McIntyre
they are not included in posix; make the description of -follow match that of -depth and -xdev, especially since its option equivalent is preferred; ok otto
2006-10-04- bump latest posix versionJason McIntyre
- note additional primaries which are not posix conformant and, conversely, one which was not previously conformant and now is this was prompted by a mail to either freebsd or netbsd lists, but i cannot for the life of me find it - thanks anyway! ok otto
2006-10-02remove some unneccessary escaping;Jason McIntyre
2006-10-01rewrite the piece about separate arguments to not confuse jmc@.Otto Moerbeek
ok jmc@ kettenis@
2006-09-26clear up some confusion between operands and operators; with & ok jmc@Otto Moerbeek
2006-09-24do not suggest that !expression and (expression) (without spaces) is valid;Jason McIntyre
"from sander bos, with credit to peter bex" ok otto
2005-12-27move the BUGS section to CAVEATS, since both the points listedJason McIntyre
are hardly bugs; prompted by j. c. roberts; ok krw millert ian
2005-10-01Fix description of -flags. Noted by Magnus Ehman in PR 4527. ok jmc@ jaredy@Otto Moerbeek
2005-08-30remove -W from synopsis; ok deraadt@ jmc@David Krause
2005-06-15no more whiteoutsTodd C. Miller
2005-03-14make the OPERATORS list -compact: this avoids the nasty line splitJason McIntyre
between 2 list items that are logically linked;