bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Summary of recent changes in CVS


From: James Youngman
Subject: Summary of recent changes in CVS
Date: Sat, 6 Nov 2004 10:29:52 +0000
User-agent: Mutt/1.3.28i

I've just checked in some changes to the CVS repository for findutils
:-

**  Functionality Changes
*** If your system sort command has a working "-z" option, updatedb will
    now correctly handle newline characters in filenames (as will
    locate).
*** If you specify an option after non-option, a warning message is now
    issued.  Options should be specified immediately after the list of
    paths to search.
*** The locate program now supports an option --null (short form -0)
    which changes the result separator from newline to NULL.
*** Locate supports the option -c (long form --count) which suppresses normal
    output but prints on stdout the number of results produced (like
    grep -c).
*** Locate now has an option --basename which forces the specified pattern to
    be matched against the basename of the entries in the locate
    database, rather than the whole name.  The default behaviour
    (matching against the whole name of the file including all the
    parent directory names) corresponds to the option --wholename.

You wll see from the above that I have backed out of the change which
ensured that glob patterns were matched agaionst the basename only,
because this was incompatible with other versions of "locate".  The
same functionality is now available through the use of the --basename
option to locate.

The functionality listed above will form part of findutils-4.2.4 when
that is released.

Options currently supported by FreeBSD locate but not GNU locate are
-m and -s (which select memory-mapped I/O or stdio), -S (print
statistics), and -l (limit number of results).  I plan to support -m
and -s (both as no-ops) and the -l option.  

If someone can send me an example and an explanation of what -S is
supposed to do, I can implement that also.  I've read the FreeBSD
manpage, I just don't know whst sort of statistics locate prints.

Regards,
James.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]