find: -printf %h drops a doubled slash
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start at the implementation of find's -printf %h format, then inspect related tests for path components and repeated slashes; the payload names no files or test paths. Reproduce with the supplied d// examples and compare %h|%f|%p with GNU find 4.10. Done when %h preserves the doubled slash so %h/%f matches %p in these cases.
Written by the indexing model from the issue text.
Description
With a starting point like d//, %h loses one of the slashes, so %h/%f no longer matches %p.
$ mkdir -p d/sub
$ find d// -mindepth 1 -printf '%h|%f|%p\n'
d/|sub|d//sub
GNU find 4.10 prints d/ for %h there, and find d//sub -printf '%h\n' also gives d/. uutils find prints d in both cases.
- Dominant language
- Rust
- Stars
- 653
- Forks
- 115
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 27
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uutils/findutils
-
find: -printf %TT and %TX drop the fraction of a secondPossibly taken @qodelicious claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
uutils/findutils#692 · 1 comment ·
Maintainers usually reply within 1 day
-
find: -fprint /dev/stdout truncates a redirected stdoutPossibly taken @qodelicious claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 62/100
Maintainers usually reply within 1 day
All issues in uutils/findutils
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
🐞 bug 🧩 bevy_gantz_egui
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nannou-org/gantz#500 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
metasequoiaime/msime#10989 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fritzprix/libr-agent#2612 ·
Maintainers usually reply within 1 day
-
crate: spate-core priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day