findutils icon indicating copy to clipboard operation
findutils copied to clipboard

find: Fix -execdir + working incorrectly for the root path

Open milkory opened this issue 8 months ago • 4 comments

This command should work now.

find / -maxdepth 0 -execdir echo {} +

milkory avatar Apr 09 '25 00:04 milkory

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.77%. Comparing base (a571de6) to head (d02dcbc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #533      +/-   ##
==========================================
+ Coverage   87.70%   87.77%   +0.06%     
==========================================
  Files          31       31              
  Lines        6887     6926      +39     
  Branches      324      324              
==========================================
+ Hits         6040     6079      +39     
  Misses        616      616              
  Partials      231      231              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Apr 09 '25 00:04 codecov[bot]

Could you please add a test to make sure we don't regress? Thanks

sylvestre avatar Apr 09 '25 12:04 sylvestre

Yes, I'll add some later.

milkory avatar Apr 13 '25 10:04 milkory

I have added a test on process_dir and another test for execdir + in root directory.

milkory avatar Apr 13 '25 16:04 milkory