Fixed bug #13973.
[findutils.git] / NEWS
blob475831e9c84651e44a6c3765ad3113c0ea45e4e8
1 GNU findutils NEWS - User visible changes.      -*- outline -*- (allout)
2 * Major changes in release 4.3.0-CVS
4 ** Documentation Changes
6 The manual now includes a "Worked Examples" section which talks about
7 the various ways in which findutils can be used to perform common
8 tasks, and why some of these alternatives are better than others.
10 The -I option of xargs (which is required by the POSIX standard) is
11 now documented.
13 Many documentation readability enhancements and proofreading fixes
14 were contributed by Aaron Hawley.
16 ** Functional Changes
18 *** Functional changes in locate
20 The "--regex" option of locate now assumes the regular expression to
21 be in the same syntax as is used in GNU Emacs, though this can be
22 changed with the new option --regextype.  This is a change from the
23 existing behaviour (which was to use POSIX Basic Regular Expressions).
24 Since this featrue is releatively new anyway, I though it was more
25 useful to have compatibility between regular expression handling in
26 find and locate than to maintain the short-lived previous behaviour of
27 locate.
29 The locate program now also supports a "--regextype" long option which
30 controls which regular expression syntax is understood by locate.
31 This is a long option and has no single-letter 'short option'
32 equivalent.
34 *** Functional changes in find
36 The regular expression syntax understood by "find" can be changed with
37 the -regextype option; this option is positional, meaning that you can
38 have several tests, each using a distinct syntax (this is not
39 recommended practice however).
41 The default regular expression syntax is substantially the same as
42 that recognised by GNU Emacs, except for the fact that "." will match
43 a newline.
45 The leaf optimisation can be disabled with the configure option
46 "--disable-leaf-optimisation", which is equivalent to specifying
47 "-noleaf" on all find command lines.  This is useful for systems
48 having filesystems which do not provide traditional Unix behaviour for
49 the link cound on directories (for example Cygwin and the Solaris 9
50 HSFS implementation).
52 ** Bug Fixes
54 *** Bug Fixes for find
56 The -iregex test now works once again on systems that lack
57 re_search() (that is, systems on which findutils needs to use the
58 gnulib version of this function).
60 find -regex now once again uses GNU Emacs-compatible regular
61 expressions.
63 If invoked with stderr closed, the -fprint and -fprintf actions now no
64 longer cause error messages to be sent into the output file.
66 If the link count of a directory is less that two, the leaf
67 optimisation is now disabled for that directory.
69 The "%Y" directive for the -orintf action now no longer changes find's
70 idea of the mode of the file, so this means among other things that
71 "-printf %Y %y" now works properly.  This is Savannah bug #13973.
73 * Major changes in release 4.2.23
75 ** Documentation Changes
77 The -L and -I options of xargs are currently incompatible (but should
78 not be).
80 Improved the documentation for -execdir and -okdir.
82 ** Functional Changes to updatedb
84 File names ending in "/" which are specified as an argument to
85 --prunepaths (or in $PRUNEPATHS) don't work, so we now issue an error
86 message if the user tries to do that.  The obvious exception of course
87 is "/" which does work and is not rejected.
90 * Major changes in release 4.2.22
92 ** Security Fixes
94 If a directory entry searched with "find -L" is a symbolic link to
95 ".", we no longer loop indefinitely.  This problem affected find
96 versions 4.2.19, 4.2.20 and 4.2.21.  This problem allows users to make
97 "find" loop indefinitely.  This is in effect a denial of service and
98 could be used to prevent updates to the locate database or to defeat
99 file security checks based on find.   However, it should be noted that
100 you should not use "find -L" in security-sensitive scenarios.
102 ** Other Bug Fixes
104 None in this release.
106 ** Functional Changes to locate
108 A locate database can now be supplied on stdin, using '-' as a element
109 of the database-path. If more than one database-path element is '-',
110 later instances are ignored.
112 A new option to locate, '--all' ('-A') causes matches to be limited to
113 entries which match all given patterns, not entries which match
114 one or more patterns.
116 ** Documentation Changes
118 Some typos in the manual pages have been fixed.  Various parts of the
119 manual now point out that it is good practice to quote the argument of
120 "-name".  The manpage now has a "NON-BUGS" section which explains some
121 symptoms that look like bugs but aren't.  The explanations of the "%k"
122 and "%b" directives to "find -printf" have been imrpoved.
125 * Major changes in release 4.2.21
126 ** Functional Changes to find
128 The GNU extension "find ... -perm +MODE" has been withdrawn because it
129 is incompatible with POSIX in obscure cases like "find ... -perm ++r".
130 Use the new syntax "find ... -perm /MODE" instead.  Old usages will
131 still continue to work, so long as they don't conflict with POSIX.
133 If the output is going to a terminal, the -print, -fprint, -printf and
134 -fprintf actions now quote "unusual" characters to prevent unwanted
135 effects on the terminal.  See "Unusual Characters in File Names" for
136 further details.  There is no change to the behaviour when the output
137 is not going to a terminal.   The locate program does the same thing,
138 unless the -0 option is in effect (in which case the filenames are 
139 printed as-is).
141 ** Functional Changes to locate
143 The locate command will now read each locate database at most once.
144 This means that if you are using multiple databases and are searching
145 for more than one name, the results will now be printed in a different
146 order (and if you specified a small limit with --limit, you may get a
147 different set of results).
149 A new option '--print' for locate causes it to print the matching
150 results even if the '--count' or '--statistics' option is in effect.
152 ** Bug Fixes
153 find /blah/blah/blah -depth -empty now works once again.
155 The -regex and -iregex tests of find now correctly accept POSIX Basic
156 Regular Expressions.  (Savannah bug #12999)
158 The updatedb program now works on systems where "su" does not support
159 the "-s" option, for example Solaris.
161 * Major changes in release 4.2.20
162 ** Internationalization and Localization
163 Updated Vietnamese and Dutch translations.   
165 ** Bug Fixes
166 Minor bugfix affecting only those who compile from the CVS repository, 
167 as opposed to those who compile from the source releases.
169 * Major changes in release 4.2.19
170 ** Bug Fixes
172 find should now no longer hang on systems which lack the O_NOFOLLOW
173 flag to open(2) and which are clients of an unresponsive NFS server
174 (Savannah bug #12044).
176 We now avoid inappropriately failing for "find -L foo" or "find -H
177 foo" if foo is a symbolic link (Savannah bug #12181).  Previously we
178 used to fail with the error message "Too many levels of symbolic
179 links".
181 "find . -false -exec foo {} +" no longer runs an extra instance of foo
182 when find exits (Savannah bug #12230).
184 If the chdir() safety check fails but we can no longer get back to 
185 where we started, exit with an explanatory (fatal) error message.
186 This does not happen on GNU/Linux and FreeBSD because the safety check
187 is not needed (the security problem the safety check protects against
188 is prevented in a cleaner way on those systems).
190 "make distclean" no longer deletes regex.c (which "make all" needs).
192 **  Functionality Changes
193 "find -printf "%h\n" will now print "." for files in the current directory.
194 Previously it printed nothing (but there was a bug in the %h
195 implementation anyway).  This fixes Savannah bug #12085.
197 Should now build (again) on non-C99-compliant systems.
199 ** Documentation enhancements
200 Fixed some typos and clarified wording in "Working with automounters".
202 ** Internationalization and Localization
203 New Vietnamese message translation.
205 * Major changes in release 4.2.18
206 ** Bug Fixes
207 *** "find -depth" was missing out non-leaf directories when they contain 
208     non-directories.  This affected findutils releases 4.2.15,
209     4.2.16 and 4.2.17, but the bug is now fixed.
210 *** Find no longer hangs on systems which are clients of unresponsive 
211     NFS servers.
212 **  Documentation improvements
213 *** Improvements and corrections to the find.1 manpage, including corrections to the descriptions of -H and -L.
215 * Major changes in release 4.2.17
216 ** Bug Fixes
217 *** bug #11861  undefined symbol "basename" on IRIX 5.3 
218 *** bug #11865  xargs -i regression  (as compared to findutils-4.2.12)
219 *** bug #11866  Typo in pred_okdir renders it useless (affecting 4.2.16 only)
220 *** patch #3723 fix recent process_top_path change (for -execdir on /)
221 *** Fixing bug #11866 and applying patch #3723 made -execdir work much better.
222 *** find bar/baz/ugh now works again if baz is a symbolic link (broken 
223     in 4.2.15).
225 * Major changes in release 4.2.16
226 **  Functionality Changes
227 *** Updated the message catalogues for the translated messages.
228 *** The subfs filesystem is now treated the same as the autofs
229     filesystem is.
230 *** New translations:  Belarusian, Catalan, Greek, Esperanto,
231     Finnish, Irish, Croatian, Hungarian, Japanese, Luganda,
232     Malay, Romanian, Slovenian, Serbian, Chinese (simplified).
234 **  Bug Fixes
235 *** The -execdir action now works correctly for files named on the 
236     command line.
238 * Major changes in release 4.2.15
239 **  Functionality Changes
240 *** locate now supports matching regular expression (--regex).
241 *** --enable-d_type-optimization (introduced in findutils 4.2.13) is now turned on by default.
243 * Major changes in release 4.2.14
244 **  Functionality Changes
245 *** New options -L, -P, -H for locate.  The work in the same was as the same options for find.
246 **  Bug Fixes
247 *** Don't include the "findutils/find/testsuite/find.gnu" subdirectory in the 
248     distributed tar file more than once.
249 *** Should now build on Solaris once again.
250 *** -xtype and -printf %Y now work correctly for symbolic links once again
251 **  Documentation improvements
252 *** All options for "locate" are now documented
254 * Major changes in release 4.2.13
255 **  Performance Enhancements
256 *** On Linux and some other systems, a large performance improvement, 
257     because we can eliminate many of the calls to lstat() (in extreme
258     cases, 99% of them).  Limited testing shows a 2x speedup on NFS
259     filesystems.  Other systems which can make use of this enhancement
260     include Mac OS X and *BSD.
262 * Major changes in release 4.2.12
263 **  Functionality Changes
264 *** find is now POSIX-compliant, as far as I know.
265 *** -exec ... {} + now works.
266 *** New actions -execdir and -okdir which are like -exec and -ok but more secure.
267 *** "locate -w" is now a synonym for "locate --wholepath".
268 *** An empty path entry in the locate database path (for example "::" in 
269     $LOCATE_PATH or in the argument to "locate -d") is taken to mean
270     the default database, whose name is hard-coded in locate.
271 **  Bug Fixes
272 *** If find or xargs cannot write to stdout, for example because 
273     output is redirected to a file and the disk is full, the 
274     relevant program will return a non-zero exit status.
276 * Major changes in release 4.2.11
277 **  Bug Fixes
278 *** Compilation fix for systems without EOVERFLOW.
279 *** More helpful error message if you make a mistake with (, ), -o or -a.
280 **  Functionality Changes
281 *** If you have unclosed parentheses on the find command line, 
282     or any of a number of similar problems, find will now produce 
283     a more helpful error message.
284 *** locate -b is now a synonym for locate --basename
285 *** locate now supports a --statistics (or -S) option, which prints some
286     statistics about the locate databases.
287 *** Implemented the -samefile option.
288 **  Documentation improvements
289 *** New chapter in the manual, "Security Considerations". 
290 *** Better documentation for -prune (Mainly thanks to   Stepan Kasal)
291 **  Bug Fixes
292 *** locate's options -i and -w now work with the -e option (previously a bug 
293     prevented this).
295 * Major changes in release 4.2.10
296 **  Bug Fixes
297 *** Portability fix for fstype.c: should now compile on UNICOS, and possibly 
298     also produce useful results on BeOS and Dolphin, perhaps other
299     systems too.   
301 * Major changes in release 4.2.9
302 **  Functionality Changes
303 *** xargs no longer treats a line containing only an underscore as a logical end-of-file.   To obtain the behaviour that was previously the default, use "-E_". 
304 *** xargs now supports the POSIX options -E, -I and -L.   These are synonyms 
305     for the existing options -e, -i and -l, but the latter three are
306     now deprecated.
307 **  Bug Fixes
308 *** xargs -n NUM now invokes a command as soon as it has NUM arguments.  
309     Previously, it waited until NUM+1 items had been read, and then
310     invoked the command with NUM arguments, saving the remaining one
311     for next time. 
312 *** If "find -L" discovers a symbolic link loop, an error message is issued.
313 *** If you specify a directory on the find command line, but -prune 
314     is applied to it, find will no longer chdir() into it anyway.
315 **  Documentation improvements
316 *** The precise interpretation of the arguments to the -atime, -ctime 
317     and similar tests in find has been documented more clearly.
319 * Major changes in release 4.2.8
320 *** Bugfix to the findutils 4.2.7 automount handling on Solaris.  This 
321     worked to some extent in findutils-4.2.7, but is much improved in
322     findutils-4.2.8.
324 * Major changes in release 4.2.7
325 **  Functionality Changes
326 *** xargs can now read a list of arguments from a named file, allowing 
327     the invoked program to use the same stdin as xargs started with
328     (for example ``xargs --arg-file=todo emacs'').
329 **  Documentation improvements
330 *** The Texinfo manual now has an extra chapter, "Error Messages".  Most 
331     error messages are self-explanatory, but some of the ones which
332     are not are explained in this chapter.
333 **  Bug Fixes
334 *** Avoid trying to link against -lsun on UNICOS, which doesn't need it or 
335     have it.
336 *** Bugfix to the findutils 4.2.6 automount handling (which hadn't been enabled
337     on Solaris).
338 *** Reenabled internationalisation support (which had been accidentally 
339     disabled in findutils-4.2.5).
341 * Major changes in release 4.2.6
342 **  Bug Fixes
343 *** find now copes rather better when a directory appears to change just as
344     it is about to start examining it, which happens with automount.
345     This is because automount mounts filesystems as you change
346     directory into them.  This should resolve Savannah bugs #3998,
347     #9043.
349 * Major changes in release 4.2.5
350 **  Functionality Changes
351 *** The POSIX options -H and -L are supported.  These control whether or not
352     find will follow symbolic links.
353 *** The BSD option -P is also now supported (though in any case 
354     it is the default).
355 **  Documentation improvements
356 ***  Better documentation for "xargs -i".
357 **  Bug Fixes
358 *** "make install" now respects DESTDIR when generating localstatedir.
359     (this is only relevant if you are installing to some location
360     other than the one that you indictaed when you ran "configure").
361 *** Compatible with automake versions 1.8 and 1.9.
362 *** Build problems on UNICOS now fixed, though the linker will still generate 
363     warnings because we try to link with the nonexistent library
364     "-lsun".  Edit $(LIBS) to work around this problem.
366 * Major changes in release 4.2.4
367 **  Functionality Changes
368 *** If your system sort command has a working "-z" option, updatedb will
369     now correctly handle newline characters in filenames (as will
370     locate).
371 *** xargs now uses 128Kb of command line by default (less if the system 
372     doesn't support that much).
373 *** If you specify a 'find' option after non-option, a warning message 
374     is now issued.  Options should be specified immediately after the 
375     list of paths to search.  These warnings are enabled if you
376     specify the -warn option, or if stdin is a tty.  They are diabled
377     by the use of the -nowarn option.  
378 *** Like find, the locate program now supports an option --null (short form -0)
379     which changes the result separator from newline to NULL.
380 *** Locate supports the option -c (long form --count) which suppresses normal
381     output but prints on stdout the number of results produced (like
382     grep -c).
383 *** Locate supports the option -l (long form --limit) which limits the 
384     number of results.  This is useful if you only want to find out if
385     there are copies of a certain file on the system, but don't want
386     to wait for the entire locate database to be searched.
387 *** Locate now has an option --basename which forces the specified pattern to 
388     be matched against the basename of the entries in the locate
389     database, rather than the whole name.  The default behaviour
390     (matching against the whole name of the file including all the
391     parent directory names) corresponds to the option --wholename.
392 *** updatedb has a new option, --findoptions, that can be used to 
393     pass extra options through to the find command that it uses.
394 **  Bug Fixes
395 *** "find -printf '%H\n'" now works (rather than segfaulting) on
396     systems that have non-writable string constants.
397 *** Better POSIX compliance for the -s option to xargs (out of range 
398     values should just result in bounding to the correct range, not an
399     error, so now we just print a warning message and adjust the
400     value).
401 *** Corrected section numbers of manual page cross-references
403 * Major changes in release 4.2.3
404 **  Functionality Changes
405 *** Added new action -delete which deletes things that find matches.
406 *** Added new action -quit which causes find to exit immediately.
407 *** A new format directive '%D' for "find -printf" prints the device number.
408 *** The -ls predicate no longer truncates user or group names.
409 *** Added new option "-d" which is a synonym for "-depth" for compatibility
410     with Mac OS, OpenBSD and FreeBSD.  This option is already
411     deprecated since the POSIX standard specifies "-depth".   
412 *** Added two new format specifiers to the -printf action; these are 
413     %y and %Y.  They indicate the type of the file as a single letter;
414     these are the same latters as are used by the "-type" test.
415 *** If a parent directory changes during the execution of find, 
416     the error message we issue identifies the nature of the change
417     (for example the previous and current inode numbers of the 
418     directory we've just returned out of).
419 ** Other Changes
420 *** Non-functional code changes to silence compiler warnings.
422 * Major changes in release 4.2.2
423 **  Documentation improvements
424 *** "find ... -exec {}+" is not yet supported.
425 ** Bug Fixes
426 *** Fixed compilation problems on Solaris, RedHat EL AS 2.1, Irix, AIX
427 *** Work around possible compiler bug on HP-UX 11.23 for ia64
428 *** The built-in internationalisation support now works again.
429 ** Other Changes
430 *** We now import the gnulib source in the way it is intended to be used,
431     which means among other things that we only have one config.h file
432     now.
433 *** Functions which findutils requires but which are not present in 
434     gnulib are now defined in "libfind.a".  This is in the lib
435     directory, while gnulib is in the gnulib subdirectory.
436 *** Fixed a typo in the address of the FSF in many of the file headers.
438 * Major changes in release 4.2.1
439 ** Bug Fixes
440 *** 'find -name \*bar now matches .foobar, because the POSIX standard 
441      requires it, as explained at
442      http://standards.ieee.org/reading/ieee/interp/1003-2-92_int/pasc-1003.2-126.html
444 * Major changes in release 4.2.1
445 ** Bug Fixes
446 *** find -iname now works correctly on systems that have an fnmatch() function 
447     that does not support FNM_CASEFOLD
448 *** updatedb now uses signal names for "trap" instead of numbers, 
449     as per bug #9465 (see http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html)
450 *** Better support for systems lacking intmax_t
451 ** Other Changes
452 **** findutils now uses a newer version of gnulib (dated 2004-10-17).
454 * Major changes in release 4.2.0
455 ** Functionality Changes
456 *** xargs now works better when the environment variables are very extensive.
457     The xargs command used to run into difficulties if the environment 
458     data contained more than 20480 bytes.
459 *** New options -wholename and -iwholename 
460     As per the GNU Projecvt coding standard, These are preferred over 
461     the -path and -ipath options.  Using -ipath now generates a warning,
462     though -path does not (since HPUX also offers -path).   
463 *** The environment variable FIND_BLOCK_SIZE is now ignored.
464 *** New option "-ignore_readdir_race"
465     silences an error messages which would otherwise occur if a file is removed
466     after find has read it from the directory using readdir(), but before 
467     find stats the file.  There is also an option
468     -noignore_readdir_race which has the opposite effect.   
469 **  Documentation improvements
470 *** The -size option of find is now documented in more detail
471 *** POSIX compliance and GNU extensions
472     The find manual page also now includes a section 
473     which describes the relationship between the features of GNU 
474     find and the POSIX standard.  Some other small improvements 
475     to the find and xargs manual pages have been made.
476 *** The argument to the -fprintf directive is now better documented.
477     The escape code '\0' for the `-printf' predicate of find is now
478     documented, and the documentation for the %k and %b specifiers
479     has been improved.  
480 *** xargs -i is now more clearly documented.
481 ** Bug Fixes
482 *** locate 'pa*d' will now find /etc/passwd (if it exists, of course)
483 *** xargs standard input is not inherited by child processes
484     If the command invoked by xargs reads from its standard input, 
485     it now gets nothing, as opposed to stealing data from the 
486     list of files that xargs is trying to read.
487 *** Better support for 64-bit systems.
488 *** The command "xargs -i -n1" now works as one might expect, 
489     I think this is a strange thing to want to do.  
490 *** Arguments to find -mtime that are too large are now diagnosed 
491     Previously, this just used to cause find just to do the wrong thing.
492 *** updatedb is now somewhat more robust
493     The updatedb shell script now does not generate an empty 
494     database if it fails.  
495 *** Sanity-check on some data read from locatedb
496     Locate now detects some types of file corruption in the 
497     locate database.
498 *** The %k format specifier for -fprintf now works
499     This was broken in 4.1.20.
501 * Major changes in release 4.1.20:
502 ** New maintainer, James Youngman <jay@gnu.org>
503 ** As far as I know, this is the first release after 4.1.7, but I've left 
504    a gap just in case. 
505 ** We now use an "imported" version of gnulib, rather than including 
506    a copy of the gnulib code in our CVS repository.   There are no
507    differences in the build instructions, though (unless you are 
508    building directly from CVS, in which case please read the file
509    README-CVS).
510 ** There are no (deliberate) functional changes in version 4.1.20.
512 * Major changes in release 4.1.7:
513 fix problem so that default "-print" is added when "-prune" is used.
514 security fixes related to directories changing while find is executing.
516 * Major changes in release 4.1.6:
517 correct bug in prune.
518 added --ignore-case option for locate
520 * Major changes in release 4.1.5:
521 Add support for large files
523 * Major changes in release 4.1.4:
524 bug fixes, more up-to-date languages.
526 * Major changes in release 4.1.3:
527 added internationalization and localization.
529 * Major changes in release 4.1.1:
530 attempt at successful compilation on many platforms after years of neglect
531  "--existing" option added to locate "--prunefs" option added to updatedb
533 * Major changes in release 4.1:
535 ** Distribution renamed to findutils.
536 ** updatedb is now a user command, installed in $exec_prefix/bin
537   instead of $exec_prefix/libexec.
538 ** A few problems in Makefiles and testsuite corrected.
540 * Major changes in release 4.0:
542 ** Documentation:
543 *** Texinfo manual.
544 *** Man page for updatedb.
545 *** Man page for the locate database formats.
547 ** find:
548 *** Takes less CPU time on long paths, because it uses chdir to descend
549    trees, so it does fewer inode lookups.
550 *** Does not get trapped in symbolic link loops when -follow is given.
551 *** Supports "-fstype afs" if you have /afs and /usr/afsws/include
552    and you configure using the --with-afs option.
553 *** New action -fls FILE; like -ls but writes to FILE.
555 ** locate:
556 *** Supports a new database format, which is 8-bit clean and
557    allows machines with different byte orderings and integer sizes to
558    share the databases.  The new locate can also detect and read the
559    old database format automatically.  The new databases are typically
560    30% or more larger than the old ones (due to allowing all 8 bits in
561    file names).  Search times are approximately the same, or faster on
562    some systems.
563 *** Warns if a file name database is more than 8 days old.
565 ** updatedb:
566 *** Takes command-line options.
568 ** xargs:
569 *** Performance improved 10-20%.
570 *** The EOF string is not used when -0 is given.
571 *** Now has a test suite.  Some minor bugs fixed as a result.
573 * Major changes in release 3.8:
575 ** case insensitive versions of -lname, -name, -path, -regex:
576   -ilname, -iname, -ipath, -iregex
577 ** %F directive for -printf, -fprintf to print file system type
579 * Major changes in release 3.7:
581 ** locate can search multiple databases
582 ** locate has an option to specify the database path
583 ** updatedb no longer goes into an infinite loop with some versions of tail
585                         --//--
586 This is used by Emacs' spell checker ispell.el:
588 LocalWords: ansi knr strftime xargs updatedb sh fnmatch hin strcpy
589 LocalWords: lib getstr getline frcode bigram texi depcomp automake
590 LocalWords: strncasecmp strcasecmp LIBOBJS FUNC prunefs allout libexec
591 LocalWords: testsuite Texinfo chdir inode fstype afs fls ls EOF lname
592 LocalWords: regex ilname iname ipath iregex printf fprintf