bug-findutils
[Top][All Lists]
Advanced

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

[bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar"


From: zhoushuiqing
Subject: [bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar" to "-regex '/usr/\(foo\|bar\)'"
Date: Tue, 17 May 2022 22:46:10 -0400 (EDT)

Follow-up Comment #1, bug #58197 (project findutils):

$find ... -regex ".. | .."
$find ... -path.. -o -path ..
they are not the same in the expression tree.

$find -D tree ...
As we can see from the result of this command, -regex on a leaf alone, two
-path on two leaves. While searching for files, every leaf will be applied, so
I think it is reasonable to spend more time...that's just my opinion


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58197>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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