[bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar" to "-regex '/usr/\(foo\|bar\)'"

2022-05-17 Thread Bernhard Voelker
Follow-up Comment #2, bug #58197 (project findutils): The main point about the optimizer in find(1) is to avoid costly activities when cheap ones can already rule out that the current item has to be processed further. Costly activities are e.g. extra stat() calls. Cheap activities are evaluating c

[bug #62480] find -D stat cannot print anything

2022-05-17 Thread Bernhard Voelker
Update of bug #62480 (project findutils): Open/Closed:Open => Closed ___ Follow-up Comment #3: Thanks, I'm hereby closing this issue. _

[bug #62480] find -D stat cannot print anything

2022-05-17 Thread zhoushuiqing
Follow-up Comment #2, bug #62480 (project findutils): Thank you very much, I am interested in this program so I am learning it ___ Reply to this item at: __

[bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar" to "-regex '/usr/\(foo\|bar\)'"

2022-05-17 Thread zhoushuiqing
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,

[bug #62480] find -D stat cannot print anything

2022-05-17 Thread Bernhard Voelker
Update of bug #62480 (project findutils): Status:None => Working as Intended Assigned to:None => berny ___ Follow-up Comment #1: The point is that

[bug #62480] find -D stat cannot print anything

2022-05-17 Thread zhoushuiqing
URL: Summary: find -D stat cannot print anything Project: findutils Submitted by: zhoushuiqing Submitted on: Tue 17 May 2022 01:16:55 PM UTC Category: find Severity: 3