Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

diff: return the difference status with -y

Offen
#290 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
277
Forks
40
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus uutils/diffutils

Alle Issues in uutils/diffutils

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.