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

diff: clustered short options such as -ut and -qst are rejected

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by reproducing the clustered-option commands shown in the issue and inspect the diff command's option-parsing entry point. Compare the rejected forms with separate options, while reading the parser replacement context in #97, #193, and the dependency on #291. Done means -qst and -ut behave like their separated equivalents, including output and exit status.

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

Descrizione

GNU documents that short options without arguments may be combined. uutils accepts these options separately, but rejects the combined forms.

$ printf 'a\nb\n' > a; printf 'a\nc\n' > b
$ diff -qst a b; echo $?

GNU diff 3.12 prints Files a and b differ and exits 1. uutils reports unrecognized option '-qst' and exits 2. diff -ut a b is rejected in the same way, while diff -q -s -t a b works.

#97 and #193 discuss replacing the option parser more generally.

I have a fix ready and will open the PR once #291 is merged, since it builds on that change.

Lingua principale
Rust
Stelle
276
Fork
43
Merge medio
1g 23h
PR unite (30g)
8

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.