bug-findutils
[Top][All Lists]
Advanced

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

Re: locate and regexp search


From: Karl Berry
Subject: Re: locate and regexp search
Date: Wed, 26 Jan 2005 14:12:03 -0500

    Relatively straightforward - I'm happy to do this.  

Thank you very much!

    Presumably this should be controlled by option -r, --regex for
    compatibility with slocate.

Yes.

    Could you find out for me whether the slocate implementation requires
    that the regexp match the 

    1. The WHOLE path name, or 
    2. Just the basename, or
    3. Any substring?

Any substring, as if the regexp started with ^.* and ended with .*$ (and
is matched against the whole path name).

slocate -r o/b  matches a database entry like foo/bar, for example.

Thanks again.  Dealing with regex.c madness in autoconfigury stuff will
probably be the worst part ...

karl




reply via email to

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