find: -fprint /dev/stdout truncates a redirected stdout
维护者通常 1 天内回复
评估
调研方向
Start by reading the handling of -fprint, -fprint0, -fprintf and -fls and how those actions open their output paths. Reproduce the reported case with redirected stdout, then check the corresponding stderr case. Done means /dev/stdout and /dev/stderr write to the redirected streams without truncating existing output.
由索引模型根据 Issue 内容生成。
描述
GNU find treats /dev/stdout and /dev/stderr specially in -fprint, -fprint0, -fprintf and -fls. We open them as normal files, so when stdout is redirected the file gets truncated and the output overwrites itself.
$ echo keep > log
$ /usr/bin/find a.txt -fprint /dev/stdout >> log; cat log
keep
a.txt
$ find a.txt -fprint /dev/stdout >> log; cat log
a.txt
Same with -fprint /dev/stderr 2> err, where an error message overwrites the printed names.
- 主要语言
- Rust
- 星标
- 653
- 派生
- 115
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 27
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/findutils 的其他 Issue
-
find: -printf %h drops a doubled slash可能已有人在做 @qodelicious 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
find: -printf %TT and %TX drop the fraction of a second可能已有人在做 @qodelicious 今天认领。 未关闭
难度 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 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
ScoopInstaller/Extras#19275 ·
维护者通常 1 天内回复
-
area:plugins kind:bug priority:p2 ready
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug priority: medium ui
难度 2/5 1-3 小时 新手友好度 62/100
storytold/gridcraft#3496 · 1 条评论 ·
维护者通常 1 天内回复
-
bip39: Mnemonic::new_from_phrase rejects phrases with extra or non-space whitespace可能已有人在做 @chukwudiikeh 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复