Skip to content

Fix incorrect triple slashes behavior#512

Merged
hanbings merged 3 commits into
uutils:mainfrom
Every2:main
Mar 26, 2025
Merged

Fix incorrect triple slashes behavior#512
hanbings merged 3 commits into
uutils:mainfrom
Every2:main

Conversation

@Every2

@Every2 Every2 commented Mar 26, 2025

Copy link
Copy Markdown

As stated by @tavianator, the correct behavior of -name / is:

$ find / -maxdepth 0 -name /
/
$ find /// -maxdepth 0 -name /
///
$ find / -maxdepth 0 -name ///
$ find /// -maxdepth 0 -name ///

This PR meets the specified requirements. Now the issue #24 can be closed.

@codecov

codecov Bot commented Mar 26, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.50%. Comparing base (28b1c88) to head (6d54482).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/find/matchers/name.rs 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #512      +/-   ##
==========================================
- Coverage   87.51%   87.50%   -0.01%     
==========================================
  Files          31       31              
  Lines        6704     6708       +4     
  Branches      300      299       -1     
==========================================
+ Hits         5867     5870       +3     
  Misses        626      626              
- Partials      211      212       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@hanbings hanbings linked an issue Mar 26, 2025 that may be closed by this pull request
@hanbings hanbings merged commit 764be30 into uutils:main Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-name / should match ///

3 participants