You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
-o should suppress -A/-B/-C context, but uu_grep still prints context lines #67
grep - -o should suppress -A/-B/-C context, but uu_grep still prints context lines
Found by the differential fuzzer with args grep ["-e", "\\w", "-o", "-B", "3", "-n", "-B", "2"].
GNU grep ignores the context options (-A, -B, -C) when --only-matching (-o) is in
effect: only the matched text of matching lines is printed, never the surrounding context. uu_grep still emits the before/after context lines, so its output contains extra lines GNU
never produces.
With -n the divergence shows up as extra N- context-prefixed lines in the Rust output for
each context line (including empty ones), e.g. 4-, 5- before the matched 6:x.
Activity