diff: return the difference status with -y
还没有人认领这个 Issue。
评估
调研方向
Start by running the provided Linux reproduction with GNU diffutils 3.12 and the uutils release build, then trace the diff -y path that determines the process exit status. Done means side-by-side output remains unchanged while differing files return status 1, matching GNU diff, with equal files and errors retaining their expected statuses.
由索引模型根据 Issue 内容生成。
描述
Side-by-side output can show a difference while uutils diff exits 0.
On Linux x86_64, with GNU diffutils 3.12 and the uutils build at e4f12ad:
repo=$PWD
work=$(mktemp -d)
cd "$work"
: > a
printf 'a\n' > b
LC_ALL=C TZ=UTC diff -y a b
printf 'GNU status: %s\n' "$?"
LC_ALL=C TZ=UTC "$repo/target/release/diffutils" diff -y a b
printf 'uutils status: %s\n' "$?"
Both commands print the same added line and nothing on stderr. GNU exits 1, while uutils exits 0. A caller checking the exit status therefore treats the files as equal.
- 主要语言
- Rust
- 星标
- 277
- 派生
- 40
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/diffutils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
`sysknife history --help` says --since takes ISO-8601, and the parser refuses offsets and bare dates未关闭bug easy good first issue help wanted
难度 1/5 1-3 小时 新手友好度 94/100
lacs-project/sysknife#519 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 72/100
-
area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#1699 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 88/100
lbjlaq/Antigravity-Manager#3539 · 2 条评论 ·
维护者通常 1 天内回复