Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

diff: return the difference status with -y

Aperta
#290 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
277
Fork
40
Merge medio
2g 21h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uutils/diffutils

Tutte le issue di uutils/diffutils

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.