find: -printf %h drops a doubled slash
维护者通常 1 天内回复
评估
调研方向
从 find 中 -printf 的 %h 格式实现开始,然后检查与路径组件和重复斜杠相关的测试;payload 未指定任何文件或测试路径。使用提供的 d// 示例复现,并将 %h|%f|%p 与 GNU find 4.10 进行比较。当 %h 保留双斜杠,使这些情况下的 %h/%f 与 %p 一致时,即为完成。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 653
- 派生
- 115
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 27
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/findutils 的其他 Issue
-
find: -printf %TT and %TX drop the fraction of a second可能已有人在做 @qodelicious 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
uutils/findutils#692 · 1 条评论 ·
维护者通常 1 天内回复
-
find: -fprint /dev/stdout truncates a redirected stdout可能已有人在做 @qodelicious 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 62/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
pop-os/cosmic-applets#1619 ·
维护者通常 3 天内回复
-
binding:python bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
coollabsio/orbit#72 ·
维护者通常 1 天内回复
-
swc_common: Mark::least_ancestor never returns when the answer is the root mark (ANT-2026-JYDQGGRT)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
swc-project/swc-ai-issues#137 ·
-
Synth suite fails unless run from the repo root: signal_flow's default machine path is cwd-relative未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
Nimblesite/osprey#370 ·
维护者通常 1 天内回复