bug-findutils
[Top][All Lists]
Advanced

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

[bug #31330] Possible RegEx bug in locate


From: James Youngman
Subject: [bug #31330] Possible RegEx bug in locate
Date: Fri, 15 Oct 2010 21:29:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2

Update of bug #31330 (project findutils):

                  Status:                    None => Invalid                
             Assigned to:                    None => jay                    

    _______________________________________________________

Follow-up Comment #2:

I'm afraid you are mistaken, as you have not correctly protected the
arguments you're passing from interpretation by the shell.  This point is
demonstrated by the attached script which shows the same problem applying to
an invocation of grep.

Essentially what's happening is that . is interpreted by the shell as an
escaped . (despite the fact that . is not special to the shell).   Hence
you're passing ..*$ to the locate program.   ..*$ matches any string at least
one character long.



(file #21685)
    _______________________________________________________

Additional Item Attachment:

File name: sv-31330.sh                    Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31330>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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