Credit Bas van Gompel for his work on locate.
[findutils.git] / NEWS
blobea79ae45d883f637da7409b853463cba0c288033
1 GNU findutils NEWS - User visible changes.      -*- outline -*- (allout)
2 * Major changes in release 4.2.21
3 ** Functional Changes to find
5 The GNU extension "find ... -perm +MODE" has been withdrawn because it
6 is incompatible with POSIX in obscure cases like "find ... -perm ++r".
7 Use the new syntax "find ... -perm /MODE" instead.  Old usages will
8 still continue to work, so long as they don't conflict with POSIX.
10 If the output is going to a terminal, the -print, -fprint, -printf and
11 -fprintf actions now quote "unusual" characters to prevent unwanted
12 effects on the terminal.  See "Unusual Characters in File Names" for
13 further details.  There is no change to the behaviour when the output
14 is not going to a terminal.   The locate program does the same thing,
15 unless the -0 option is in effect (in which case the filenames are 
16 printed as-is).
18 ** Functional Changes to locate
20 The locate command will now read each locate database at most once.
21 This means that if you are using multiple databases and are searching
22 for more than one name, the results will now be printed in a different
23 order (and if you specified a small limit with --limit, you may get a
24 different set of results).
26 A new option '--print' for locate causes it to print the matching
27 results even if the '--count' or '--statistics' option is in effect.
29 ** Bug Fixes
30 find /blah/blah/blah -depth -empty now works once again.
32 The -regex and -iregex tests of find now correctly accept POSIX Basic
33 Regular Expressions.  (Savannah bug #12999)
35 The updatedb program now works on systems where "su" does not support
36 the "-s" option, for example Solaris.
38 * Major changes in release 4.2.20
39 ** Internationalization and Localization
40 Updated Vietnamese and Dutch translations.   
42 ** Bug Fixes
43 Minor bugfix affecting only those who compile from the CVS repository, 
44 as opposed to those who compile from the source releases.
46 * Major changes in release 4.2.19
47 ** Bug Fixes
49 find should now no longer hang on systems which lack the O_NOFOLLOW
50 flag to open(2) and which are clients of an unresponsive NFS server
51 (Savannah bug #12044).
53 We now avoid inappropriately failing for "find -L foo" or "find -H
54 foo" if foo is a symbolic link (Savannah bug #12181).  Previously we
55 used to fail with the error message "Too many levels of symbolic
56 links".
58 "find . -false -exec foo {} +" no longer runs an extra instance of foo
59 when find exits (Savannah bug #12230).
61 If the chdir() safety check fails but we can no longer get back to 
62 where we started, exit with an explanatory (fatal) error message.
63 This does not happen on GNU/Linux and FreeBSD because the safety check
64 is not needed (the security problem the safety check protects against
65 is prevented in a cleaner way on those systems).
67 "make distclean" no longer deletes regex.c (which "make all" needs).
69 **  Functionality Changes
70 "find -printf "%h\n" will now print "." for files in the current directory.
71 Previously it printed nothing (but there was a bug in the %h
72 implementation anyway).  This fixes Savannah bug #12085.
74 Should now build (again) on non-C99-compliant systems.
76 ** Documentation enhancements
77 Fixed some typos and clarified wording in "Working with automounters".
79 ** Internationalization and Localization
80 New Vietnamese message translation.
82 * Major changes in release 4.2.18
83 ** Bug Fixes
84 *** "find -depth" was missing out non-leaf directories when they contain 
85     non-directories.  This affected findutils releases 4.2.15,
86     4.2.16 and 4.2.17, but the bug is now fixed.
87 *** Find no longer hangs on systems which are clients of unresponsive 
88     NFS servers.
89 **  Documentation improvements
90 *** Improvements and corrections to the find.1 manpage, including corrections to the descriptions of -H and -L.
92 * Major changes in release 4.2.17
93 ** Bug Fixes
94 *** bug #11861  undefined symbol "basename" on IRIX 5.3 
95 *** bug #11865  xargs -i regression  (as compared to findutils-4.2.12)
96 *** bug #11866  Typo in pred_okdir renders it useless (affecting 4.2.16 only)
97 *** patch #3723 fix recent process_top_path change (for -execdir on /)
98 *** Fixing bug #11866 and applying patch #3723 made -execdir work much better.
99 *** find bar/baz/ugh now works again if baz is a symbolic link (broken 
100     in 4.2.15).
102 * Major changes in release 4.2.16
103 **  Functionality Changes
104 *** Updated the message catalogues for the translated messages.
105 *** The subfs filesystem is now treated the same as the autofs
106     filesystem is.
107 *** New translations:  Belarusian, Catalan, Greek, Esperanto,
108     Finnish, Irish, Croatian, Hungarian, Japanese, Luganda,
109     Malay, Romanian, Slovenian, Serbian, Chinese (simplified).
111 **  Bug Fixes
112 *** The -execdir action now works correctly for files named on the 
113     command line.
115 * Major changes in release 4.2.15
116 **  Functionality Changes
117 *** locate now supports matching regular expression (--regex).
118 *** --enable-d_type-optimization (introduced in findutils 4.2.13) is now turned on by default.
120 * Major changes in release 4.2.14
121 **  Functionality Changes
122 *** New options -L, -P, -H for locate.  The work in the same was as the same options for find.
123 **  Bug Fixes
124 *** Don't include the "findutils/find/testsuite/find.gnu" subdirectory in the 
125     distributed tar file more than once.
126 *** Should now build on Solaris once again.
127 *** -xtype and -printf %Y now work correctly for symbolic links once again
128 **  Documentation improvements
129 *** All options for "locate" are now documented
131 * Major changes in release 4.2.13
132 **  Performance Enhancements
133 *** On Linux and some other systems, a large performance improvement, 
134     because we can eliminate many of the calls to lstat() (in extreme
135     cases, 99% of them).  Limited testing shows a 2x speedup on NFS
136     filesystems.  Other systems which can make use of this enhancement
137     include Mac OS X and *BSD.
139 * Major changes in release 4.2.12
140 **  Functionality Changes
141 *** find is now POSIX-compliant, as far as I know.
142 *** -exec ... {} + now works.
143 *** New actions -execdir and -okdir which are like -exec and -ok but more secure.
144 *** "locate -w" is now a synonym for "locate --wholepath".
145 *** An empty path entry in the locate database path (for example "::" in 
146     $LOCATE_PATH or in the argument to "locate -d") is taken to mean
147     the default database, whose name is hard-coded in locate.
148 **  Bug Fixes
149 *** If find or xargs cannot write to stdout, for example because 
150     output is redirected to a file and the disk is full, the 
151     relevant program will return a non-zero exit status.
153 * Major changes in release 4.2.11
154 **  Bug Fixes
155 *** Compilation fix for systems without EOVERFLOW.
156 *** More helpful error message if you make a mistake with (, ), -o or -a.
157 **  Functionality Changes
158 *** If you have unclosed parentheses on the find command line, 
159     or any of a number of similar problems, find will now produce 
160     a more helpful error message.
161 *** locate -b is now a synonym for locate --basename
162 *** locate now supports a --statistics (or -S) option, which prints some
163     statistics about the locate databases.
164 *** Implemented the -samefile option.
165 **  Documentation improvements
166 *** New chapter in the manual, "Security Considerations". 
167 *** Better documentation for -prune (Mainly thanks to   Stepan Kasal)
168 **  Bug Fixes
169 *** locate's options -i and -w now work with the -e option (previously a bug 
170     prevented this).
172 * Major changes in release 4.2.10
173 **  Bug Fixes
174 *** Portability fix for fstype.c: should now compile on UNICOS, and possibly 
175     also produce useful results on BeOS and Dolphin, perhaps other
176     systems too.   
178 * Major changes in release 4.2.9
179 **  Functionality Changes
180 *** 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_". 
181 *** xargs now supports the POSIX options -E, -I and -L.   These are synonyms 
182     for the existing options -e, -i and -l, but the latter three are
183     now deprecated.
184 **  Bug Fixes
185 *** xargs -n NUM now invokes a command as soon as it has NUM arguments.  
186     Previously, it waited until NUM+1 items had been read, and then
187     invoked the command with NUM arguments, saving the remaining one
188     for next time. 
189 *** If "find -L" discovers a symbolic link loop, an error message is issued.
190 *** If you specify a directory on the find command line, but -prune 
191     is applied to it, find will no longer chdir() into it anyway.
192 **  Documentation improvements
193 *** The precise interpretation of the arguments to the -atime, -ctime 
194     and similar tests in find has been documented more clearly.
196 * Major changes in release 4.2.8
197 *** Bugfix to the findutils 4.2.7 automount handling on Solaris.  This 
198     worked to some extent in findutils-4.2.7, but is much improved in
199     findutils-4.2.8.
201 * Major changes in release 4.2.7
202 **  Functionality Changes
203 *** xargs can now read a list of arguments from a named file, allowing 
204     the invoked program to use the same stdin as xargs started with
205     (for example ``xargs --arg-file=todo emacs'').
206 **  Documentation improvements
207 *** The Texinfo manual now has an extra chapter, "Error Messages".  Most 
208     error messages are self-explanatory, but some of the ones which
209     are not are explained in this chapter.
210 **  Bug Fixes
211 *** Avoid trying to link against -lsun on UNICOS, which doesn't need it or 
212     have it.
213 *** Bugfix to the findutils 4.2.6 automount handling (which hadn't been enabled
214     on Solaris).
215 *** Reenabled internationalisation support (which had been accidentally 
216     disabled in findutils-4.2.5).
218 * Major changes in release 4.2.6
219 **  Bug Fixes
220 *** find now copes rather better when a directory appears to change just as
221     it is about to start examining it, which happens with automount.
222     This is because automount mounts filesystems as you change
223     directory into them.  This should resolve Savannah bugs #3998,
224     #9043.
226 * Major changes in release 4.2.5
227 **  Functionality Changes
228 *** The POSIX options -H and -L are supported.  These control whether or not
229     find will follow symbolic links.
230 *** The BSD option -P is also now supported (though in any case 
231     it is the default).
232 **  Documentation improvements
233 ***  Better documentation for "xargs -i".
234 **  Bug Fixes
235 *** "make install" now respects DESTDIR when generating localstatedir.
236     (this is only relevant if you are installing to some location
237     other than the one that you indictaed when you ran "configure").
238 *** Compatible with automake versions 1.8 and 1.9.
239 *** Build problems on UNICOS now fixed, though the linker will still generate 
240     warnings because we try to link with the nonexistent library
241     "-lsun".  Edit $(LIBS) to work around this problem.
243 * Major changes in release 4.2.4
244 **  Functionality Changes
245 *** If your system sort command has a working "-z" option, updatedb will
246     now correctly handle newline characters in filenames (as will
247     locate).
248 *** xargs now uses 128Kb of command line by default (less if the system 
249     doesn't support that much).
250 *** If you specify a 'find' option after non-option, a warning message 
251     is now issued.  Options should be specified immediately after the 
252     list of paths to search.  These warnings are enabled if you
253     specify the -warn option, or if stdin is a tty.  They are diabled
254     by the use of the -nowarn option.  
255 *** Like find, the locate program now supports an option --null (short form -0)
256     which changes the result separator from newline to NULL.
257 *** Locate supports the option -c (long form --count) which suppresses normal
258     output but prints on stdout the number of results produced (like
259     grep -c).
260 *** Locate supports the option -l (long form --limit) which limits the 
261     number of results.  This is useful if you only want to find out if
262     there are copies of a certain file on the system, but don't want
263     to wait for the entire locate database to be searched.
264 *** Locate now has an option --basename which forces the specified pattern to 
265     be matched against the basename of the entries in the locate
266     database, rather than the whole name.  The default behaviour
267     (matching against the whole name of the file including all the
268     parent directory names) corresponds to the option --wholename.
269 *** updatedb has a new option, --findoptions, that can be used to 
270     pass extra options through to the find command that it uses.
271 **  Bug Fixes
272 *** "find -printf '%H\n'" now works (rather than segfaulting) on
273     systems that have non-writable string constants.
274 *** Better POSIX compliance for the -s option to xargs (out of range 
275     values should just result in bounding to the correct range, not an
276     error, so now we just print a warning message and adjust the
277     value).
278 *** Corrected section numbers of manual page cross-references
280 * Major changes in release 4.2.3
281 **  Functionality Changes
282 *** Added new action -delete which deletes things that find matches.
283 *** Added new action -quit which causes find to exit immediately.
284 *** A new format directive '%D' for "find -printf" prints the device number.
285 *** The -ls predicate no longer truncates user or group names.
286 *** Added new option "-d" which is a synonym for "-depth" for compatibility
287     with Mac OS, OpenBSD and FreeBSD.  This option is already
288     deprecated since the POSIX standard specifies "-depth".   
289 *** Added two new format specifiers to the -printf action; these are 
290     %y and %Y.  They indicate the type of the file as a single letter;
291     these are the same latters as are used by the "-type" test.
292 *** If a parent directory changes during the execution of find, 
293     the error message we issue identifies the nature of the change
294     (for example the previous and current inode numbers of the 
295     directory we've just returned out of).
296 ** Other Changes
297 *** Non-functional code changes to silence compiler warnings.
299 * Major changes in release 4.2.2
300 **  Documentation improvements
301 *** "find ... -exec {}+" is not yet supported.
302 ** Bug Fixes
303 *** Fixed compilation problems on Solaris, RedHat EL AS 2.1, Irix, AIX
304 *** Work around possible compiler bug on HP-UX 11.23 for ia64
305 *** The built-in internationalisation support now works again.
306 ** Other Changes
307 *** We now import the gnulib source in the way it is intended to be used,
308     which means among other things that we only have one config.h file
309     now.
310 *** Functions which findutils requires but which are not present in 
311     gnulib are now defined in "libfind.a".  This is in the lib
312     directory, while gnulib is in the gnulib subdirectory.
313 *** Fixed a typo in the address of the FSF in many of the file headers.
315 * Major changes in release 4.2.1
316 ** Bug Fixes
317 *** 'find -name \*bar now matches .foobar, because the POSIX standard 
318      requires it, as explained at
319      http://standards.ieee.org/reading/ieee/interp/1003-2-92_int/pasc-1003.2-126.html
321 * Major changes in release 4.2.1
322 ** Bug Fixes
323 *** find -iname now works correctly on systems that have an fnmatch() function 
324     that does not support FNM_CASEFOLD
325 *** updatedb now uses signal names for "trap" instead of numbers, 
326     as per bug #9465 (see http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html)
327 *** Better support for systems lacking intmax_t
328 ** Other Changes
329 **** findutils now uses a newer version of gnulib (dated 2004-10-17).
331 * Major changes in release 4.2.0
332 ** Functionality Changes
333 *** xargs now works better when the environment variables are very extensive.
334     The xargs command used to run into difficulties if the environment 
335     data contained more than 20480 bytes.
336 *** New options -wholename and -iwholename 
337     As per the GNU Projecvt coding standard, These are preferred over 
338     the -path and -ipath options.  Using -ipath now generates a warning,
339     though -path does not (since HPUX also offers -path).   
340 *** The environment variable FIND_BLOCK_SIZE is now ignored.
341 *** New option "-ignore_readdir_race"
342     silences an error messages which would otherwise occur if a file is removed
343     after find has read it from the directory using readdir(), but before 
344     find stats the file.  There is also an option
345     -noignore_readdir_race which has the opposite effect.   
346 **  Documentation improvements
347 *** The -size option of find is now documented in more detail
348 *** POSIX compliance and GNU extensions
349     The find manual page also now includes a section 
350     which describes the relationship between the features of GNU 
351     find and the POSIX standard.  Some other small improvements 
352     to the find and xargs manual pages have been made.
353 *** The argument to the -fprintf directive is now better documented.
354     The escape code '\0' for the `-printf' predicate of find is now
355     documented, and the documentation for the %k and %b specifiers
356     has been improved.  
357 *** xargs -i is now more clearly documented.
358 ** Bug Fixes
359 *** locate 'pa*d' will now find /etc/passwd (if it exists, of course)
360 *** xargs standard input is not inherited by child processes
361     If the command invoked by xargs reads from its standard input, 
362     it now gets nothing, as opposed to stealing data from the 
363     list of files that xargs is trying to read.
364 *** Better support for 64-bit systems.
365 *** The command "xargs -i -n1" now works as one might expect, 
366     I think this is a strange thing to want to do.  
367 *** Arguments to find -mtime that are too large are now diagnosed 
368     Previously, this just used to cause find just to do the wrong thing.
369 *** updatedb is now somewhat more robust
370     The updatedb shell script now does not generate an empty 
371     database if it fails.  
372 *** Sanity-check on some data read from locatedb
373     Locate now detects some types of file corruption in the 
374     locate database.
375 *** The %k format specifier for -fprintf now works
376     This was broken in 4.1.20.
378 * Major changes in release 4.1.20:
379 ** New maintainer, James Youngman <jay@gnu.org>
380 ** As far as I know, this is the first release after 4.1.7, but I've left 
381    a gap just in case. 
382 ** We now use an "imported" version of gnulib, rather than including 
383    a copy of the gnulib code in our CVS repository.   There are no
384    differences in the build instructions, though (unless you are 
385    building directly from CVS, in which case please read the file
386    README-CVS).
387 ** There are no (deliberate) functional changes in version 4.1.20.
389 * Major changes in release 4.1.7:
390 fix problem so that default "-print" is added when "-prune" is used.
391 security fixes related to directories changing while find is executing.
393 * Major changes in release 4.1.6:
394 correct bug in prune.
395 added --ignore-case option for locate
397 * Major changes in release 4.1.5:
398 Add support for large files
400 * Major changes in release 4.1.4:
401 bug fixes, more up-to-date languages.
403 * Major changes in release 4.1.3:
404 added internationalization and localization.
406 * Major changes in release 4.1.1:
407 attempt at successful compilation on many platforms after years of neglect
408  "--existing" option added to locate "--prunefs" option added to updatedb
410 * Major changes in release 4.1:
412 ** Distribution renamed to findutils.
413 ** updatedb is now a user command, installed in $exec_prefix/bin
414   instead of $exec_prefix/libexec.
415 ** A few problems in Makefiles and testsuite corrected.
417 * Major changes in release 4.0:
419 ** Documentation:
420 *** Texinfo manual.
421 *** Man page for updatedb.
422 *** Man page for the locate database formats.
424 ** find:
425 *** Takes less CPU time on long paths, because it uses chdir to descend
426    trees, so it does fewer inode lookups.
427 *** Does not get trapped in symbolic link loops when -follow is given.
428 *** Supports "-fstype afs" if you have /afs and /usr/afsws/include
429    and you configure using the --with-afs option.
430 *** New action -fls FILE; like -ls but writes to FILE.
432 ** locate:
433 *** Supports a new database format, which is 8-bit clean and
434    allows machines with different byte orderings and integer sizes to
435    share the databases.  The new locate can also detect and read the
436    old database format automatically.  The new databases are typically
437    30% or more larger than the old ones (due to allowing all 8 bits in
438    file names).  Search times are approximately the same, or faster on
439    some systems.
440 *** Warns if a file name database is more than 8 days old.
442 ** updatedb:
443 *** Takes command-line options.
445 ** xargs:
446 *** Performance improved 10-20%.
447 *** The EOF string is not used when -0 is given.
448 *** Now has a test suite.  Some minor bugs fixed as a result.
450 * Major changes in release 3.8:
452 ** case insensitive versions of -lname, -name, -path, -regex:
453   -ilname, -iname, -ipath, -iregex
454 ** %F directive for -printf, -fprintf to print file system type
456 * Major changes in release 3.7:
458 ** locate can search multiple databases
459 ** locate has an option to specify the database path
460 ** updatedb no longer goes into an infinite loop with some versions of tail
462                         --//--
463 This is used by Emacs' spell checker ispell.el:
465 LocalWords: ansi knr strftime xargs updatedb sh fnmatch hin strcpy
466 LocalWords: lib getstr getline frcode bigram texi depcomp automake
467 LocalWords: strncasecmp strcasecmp LIBOBJS FUNC prunefs allout libexec
468 LocalWords: testsuite Texinfo chdir inode fstype afs fls ls EOF lname
469 LocalWords: regex ilname iname ipath iregex printf fprintf