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 天內回覆