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

grep: context output omits group separators between files

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

I maintainer di solito rispondono entro 1 giorno

@SichenLiang ci sta già lavorando.

Dal 2/10/2026.

  • #131 di @SichenLiang — aperta

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 reproducer and comparing uutils output with GNU grep, including -r, --no-group-separator, and --group-separator=STRING. Trace the context-group handling for multiple input files and add or update coverage so separators appear at file boundaries while existing within-file behavior remains unchanged.

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

Descrizione

When context output continues into another file, uutils grep does not print a group separator before the first group in that file.

printf 'hit\nno\nno\nhit\n' > first
printf 'hit\n' > second
grep -n -C0 hit first second

The current uutils output is:

first:1:hit
--
first:4:hit
second:1:hit

GNU grep 3.12 inserts another separator between the files:

first:1:hit
--
first:4:hit
--
second:1:hit

The same difference appears with -r when matches come from two explicitly named directories. All commands exit 0 with empty stderr. GNU also applies --no-group-separator and --group-separator=STRING across file boundaries.

#24 and #42 concern groups within a single file.

Lingua principale
Rust
Stelle
133
Fork
25
Merge medio
19h 49m
PR unite (30g)
11

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/grep

Tutte le issue di uutils/grep

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.